Commit fb7bee2
src: fix c++ exception on bad command line arg
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>1 parent 940484b commit fb7bee2Copy full SHA for fb7bee2
File tree
Expand file treeCollapse file tree
2 files changed
+4
-3
lines changedOpen diff view settings
Filter options
- src
- test/sequential
Expand file treeCollapse file tree
2 files changed
+4
-3
lines changedOpen diff view settings
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
444 | 444 | |
445 | 445 | |
446 | 446 | |
447 | | - |
| 447 | + |
| 448 | + |
448 | 449 | |
449 | 450 | |
450 | 451 | |
|
Collapse file
test/sequential/test-cpu-prof-invalid-options.js
Copy file name to clipboardExpand all lines: test/sequential/test-cpu-prof-invalid-options.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
58 | 58 | |
59 | 59 | |
60 | 60 | |
61 | | - |
| 61 | + |
62 | 62 | |
63 | 63 | |
64 | 64 | |
65 | | - |
| 65 | + |
66 | 66 | |
67 | 67 | |
68 | 68 | |
|
0 commit comments