1
0
mirror of https://github.com/cjdelisle/openwrt.git synced 2025-09-13 06:09:49 +00:00
Files
openwrt/package/utils/lua/patches-host/010-lua-5.1.3-lnum-full-260308.patch
Adam Bailey 3a2e7c30d3 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>
2023-07-08 16:56:12 +02:00

116 KiB