BUG: Arithmetic overflow in 'collectgarbage"step"' · lua/lua@632a71b · GitHub
Skip to content

Commit 632a71b

Browse files
committed
BUG: Arithmetic overflow in 'collectgarbage"step"'
The computation of a new debt could overflow when we give a too large step to 'collectgarbage"step"' and the current debt was already negative. This is only an issue if your platform cares for it or if you compile Lua with an option like '-fsanitize=undefined'.
1 parent 578ae57 commit 632a71b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎lapi.c‎

Lines changed: 7 additions & 2 deletions

0 commit comments

Comments
 (0)