mirror of
https://github.com/hzyitc/openwrt-redmi-ax3000.git
synced 2025-12-19 18:02:02 +00:00
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
|
||
|---|---|---|
| .. | ||
| 001-include-version-number.patch | ||
| 010-lua-5.1.3-lnum-full-260308.patch | ||
| 011-lnum-use-double.patch | ||
| 012-lnum-fix-ltle-relational-operators.patch | ||
| 013-lnum-strtoul-parsing-fixes.patch | ||
| 015-lnum-ppc-compat.patch | ||
| 030-archindependent-bytecode.patch | ||
| 100-no_readline.patch | ||