GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — tls: fix abort on negative zero sessionTimeout by JuHyeong424 · Pull Request #67661 · nodejs/node Conversation
Contributor
validateInt32() accepts -0, but the binding asserts IsInt32(), which V8 reports as false for -0, so the process aborts. Coerce the value to +0 before passing it to setSessionTimeout(). Reproductionrequire('tls').createSecureContext({ sessionTimeout: -0 }); On v26.13.1: The abort cannot be caught with try/catch. Same class of fix as #65888 (fs) and #67651 (os). Added
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. validateInt32() accepts -0, but the binding asserts IsInt32(), which V8 reports as false for -0, so the process aborts. Coerce the value to +0 before passing it to setSessionTimeout(). Signed-off-by: JuHyeong424 <[email protected]>
JuHyeong424
force-pushed
the
tls-negative-zero
branch
from
caf22f0 to
2ae6a54
Compare
Ethan-Arrowood
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lgtm; agree this is similar to the other recently merged #65888
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #67661 +/- ## ========================================== - Coverage 90.61% 90.60% -0.01% ========================================== Files 801 801 Lines 280966 280967 +1 Branches 54233 54224 -9 ========================================== - Hits 254592 254581 -11 - Misses 16566 16574 +8 - Partials 9808 9812 +4
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in a3596b6 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
validateInt32() accepts -0, but the binding asserts IsInt32(), which V8 reports as false for -0, so the process aborts. Coerce the value to +0 before passing it to setSessionTimeout(). Signed-off-by: JuHyeong424 <[email protected]> PR-URL: #67661 Reviewed-By: Ethan Arrowood <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Jake Yuesong Li <[email protected]>
validateInt32() accepts -0, but the binding asserts IsInt32(), which V8 reports as false for -0, so the process aborts. Coerce the value to +0 before passing it to setSessionTimeout(). Signed-off-by: JuHyeong424 <[email protected]> PR-URL: nodejs#67661 Reviewed-By: Ethan Arrowood <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Jake Yuesong Li <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.