FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: fix c++ exception on bad command line arg by bnoordhuis · Pull Request #46290 · nodejs/node · GitHub

/ node Public

src: fix c++ exception on bad command line arg - #46290

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
bnoordhuis:fix46223
Jan 22, 2023
Merged

src: fix c++ exception on bad command line arg#46290
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
bnoordhuis:fix46223

Conversation

Copy link
Copy Markdown
Member

Replace stoull() with strtoull(). The former throws an exception when the input is malformed, the latter doesn't.

Fixes: #46223

Replace stoull() with strtoull(). The former throws an exception when
the input is malformed, the latter doesn't.

Fixes: nodejs#46223
nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Jan 20, 2023

targos commented Jan 20, 2023

Copy link
Copy Markdown
Member

Apologies if my remark doesn't make sense, but don't we explicitly disable C++ exceptions in the build?

Copy link
Copy Markdown
Member Author

Yes, but. -fno-exceptions means our code can't throw. Third-party code like libstdc++ still can (and does.)

lpinca added request-ci Add this label to start a Jenkins CI on a PR. commit-queue Add this label to land a pull request using GitHub Actions. labels Jan 21, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 21, 2023

Copy link
Copy Markdown
Collaborator

nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 22, 2023
nodejs-github-bot merged commit 3700d9e into nodejs:main Jan 22, 2023

Copy link
Copy Markdown
Collaborator

Landed in 3700d9e

ruyadorno pushed a commit that referenced this pull request Feb 1, 2023
Replace stoull() with strtoull(). The former throws an exception when
the input is malformed, the latter doesn't.

Fixes: #46223
PR-URL: #46290
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
ruyadorno mentioned this pull request Feb 1, 2023
juanarbol pushed a commit that referenced this pull request Mar 3, 2023
Replace stoull() with strtoull(). The former throws an exception when
the input is malformed, the latter doesn't.

Fixes: #46223
PR-URL: #46290
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
juanarbol mentioned this pull request Mar 3, 2023
juanarbol pushed a commit that referenced this pull request Mar 5, 2023
Replace stoull() with strtoull(). The former throws an exception when
the input is malformed, the latter doesn't.

Fixes: #46223
PR-URL: #46290
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

worker_threads emergency aborted (std::invalid_argument exception from std::stoull)

8 participants


Back | FazBrowse Home | New Git URL