immortalwrt/package/utils/lua
Adam Bailey 5be1746bbd
lua: fix integer overflow in LNUM patch
Safely detect integer overflow in try_addint() and try_subint().
Old code relied on undefined behavior, and recent versions of GCC on x86
optimized away the if-statements.
This caused integer overflow in Lua code instead of falling back to
floating-point numbers.

Signed-off-by: Adam Bailey <aebailey@gmail.com>
(cherry picked from commit 3a2e7c30d3)
2023-08-12 08:07:01 +08:00
..
patches lua: fix integer overflow in LNUM patch 2023-08-12 08:07:01 +08:00
patches-host lua: fix integer overflow in LNUM patch 2023-08-12 08:07:01 +08:00
Makefile treewide: unmark selected packages nonshared 2021-07-02 18:15:02 +02:00