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 — dgram: fix abort on negative zero buffer size by JuHyeong424 · Pull Request #67662 · nodejs/node Conversation
Contributor
The size check accepts -0, but the binding asserts IsUint32(), which V8 reports as false for -0, so setRecvBufferSize(-0) and setSendBufferSize(-0) abort the process. Coerce the value to +0. Reproductionconst s = require('dgram').createSocket('udp4'); s.bind(0, () => s.setRecvBufferSize(-0)); On v26.13.1:
Same class of fix as #65888 (fs), #67651 (os) and #67661 (tls). 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. The size check accepts -0, but the binding asserts IsUint32(), which V8 reports as false for -0, so setRecvBufferSize(-0) and setSendBufferSize(-0) abort the process. Coerce the value to +0. Signed-off-by: JuHyeong424 <[email protected]>
JuHyeong424
force-pushed
the
dgram-negative-zero
branch
from
f7c620c to
c49a653
Compare
This comment was marked as outdated.
JuHyeong424
marked this pull request as draft
This comment was marked as outdated.
JuHyeong424
marked this pull request as ready for review
|
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 #67662 +/- ## ========================================== + Coverage 90.61% 90.73% +0.12% ========================================== Files 801 801 Lines 280966 281793 +827 Branches 54233 56141 +1908 ========================================== + Hits 254592 255680 +1088 + Misses 16566 16311 -255 + Partials 9808 9802 -6
🚀 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.
Good work on these! Small but important fixes
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Ethan-Arrowood Jenkins CI failed only on node-test-commit-windows-fanned; all other platforms passed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
CI is green now; let me tag @nodejs/net @nodejs/http for one more review so we can get this landed. Nice work again! |
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 475bed3 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The size check accepts -0, but the binding asserts IsUint32(), which V8 reports as false for -0, so setRecvBufferSize(-0) and setSendBufferSize(-0) abort the process. Coerce the value to +0. Signed-off-by: JuHyeong424 <[email protected]> PR-URL: #67662 Reviewed-By: Ethan Arrowood <[email protected]> Reviewed-By: Tim Perry <[email protected]>
The size check accepts -0, but the binding asserts IsUint32(), which V8 reports as false for -0, so setRecvBufferSize(-0) and setSendBufferSize(-0) abort the process. Coerce the value to +0. Signed-off-by: JuHyeong424 <[email protected]> PR-URL: nodejs#67662 Reviewed-By: Ethan Arrowood <[email protected]> Reviewed-By: Tim Perry <[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.