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 — src: fix integer overflow in GetNow by apapirovski · Pull Request #22214 · nodejs/node Conversation
| ||||||||||||||||||||||||||||||
|
@apapirovski build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/477/pipeline |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @@ -617,7 +617,7 @@ Local<Value> Environment::GetNow() { | |||
| CHECK_GE(now, timer_base()); | |||
| now -= timer_base(); | |||
| if (now <= 0xffffffff) | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should this have an U suffix…?
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.
It shouldn't matter in this case, right? I thought they were equivalent since this won't fit into an int and the next type is unsigned int.
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.
Okay, I looked it up – without the suffix it is still signed, but it’s a long int in that case, so we’re probably fine here. :)
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.
There was an error while loading. Please reload this page.
|
This was introduced in #18486 and shouldn't affect versions prior to 10.0.0, correct? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in 01a160a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
PR-URL: #22214 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
PR-URL: #22214 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
| @@ -617,7 +617,7 @@ Local<Value> Environment::GetNow() { | |||
| CHECK_GE(now, timer_base()); | |||
| now -= timer_base(); | |||
| if (now <= 0xffffffff) | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that the bug still exists for numbers in 2^31 .. 2^32 range?
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.
@nkbt This PR fixed the bug for those numbers – all others should remain the same
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.
Thanks, I was not sure if NewFromUnsigned does exactly that
Sorry, something went wrong.
There was an error while loading. Please reload this page.
PR-URL: nodejs/node#22214 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Matheus Marchini <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
setInterval callback function unexpected halt
There was an error while loading. Please reload this page.