You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var lib = await import('event-loop-lag');
var result = lib.default(3471846583);
Then the node instance will stuck in an infinite loop and continuously output TimeoutOverflowWarning message:
(node:1083637) TimeoutOverflowWarning: 3471846583 does not fit into a 32-bit signed integer.
Timeout duration was set to 1.
(node:1083637) TimeoutOverflowWarning: 3471846583 does not fit into a 32-bit signed integer.
Timeout duration was set to 1.
(node:1083637) TimeoutOverflowWarning: 3471846583 does not fit into a 32-bit signed integer.
Timeout duration was set to 1.
...
How often does it reproduce? Is there a required condition?
This issue can always be triggered following the steps above.
What is the expected behavior? Why is that the expected behavior?
before passing the number parameter to setTimeout, check if the number size fit the requirement of setTimeout (fit into a 32-bit signed integer) to avoid the DoS attack.
The text was updated successfully, but these errors were encountered:
Version
node v22.11.0
npm 10.9.0
Platform
What steps will reproduce the bug?
the final package.json is as follows:
Then the node instance will stuck in an infinite loop and continuously output TimeoutOverflowWarning message:
How often does it reproduce? Is there a required condition?
This issue can always be triggered following the steps above.
What is the expected behavior? Why is that the expected behavior?
before passing the number parameter to setTimeout, check if the number size fit the requirement of setTimeout (fit into a 32-bit signed integer) to avoid the DoS attack.
The text was updated successfully, but these errors were encountered: