Please sign in to comment.
unix: make timers handle large timeouts
This commit fixes two closely related integer overflow bugs: * Timers with a timeout > INT_MAX cause uv__next_timeout() to return a negative value. * Timers with very large timeouts (close or equal to ULLONG_MAX) run on the next tick. In both cases, clamp the values to prevent the overflow from happening. Fixes nodejs/node-v0.x-archive#5101.
- Loading branch information...
Showing with 70 additions and 3 deletions.