diff options
author | Adam Bailey <aebailey@gmail.com> | 2023-07-03 20:16:14 -0500 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-08-11 12:53:33 +0200 |
commit | a5b03a34c346880e30f1d1554ae9d345c8dd828c (patch) | |
tree | 5506ea95556eaf5fa50ee71d1cf609356793baf9 /target | |
parent | 4a3c66a401e8175da405265251e76d3850521741 (diff) | |
download | upstream-a5b03a34c346880e30f1d1554ae9d345c8dd828c.tar.gz upstream-a5b03a34c346880e30f1d1554ae9d345c8dd828c.tar.bz2 upstream-a5b03a34c346880e30f1d1554ae9d345c8dd828c.zip |
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 3a2e7c30d3e6a187ba1df740cdb24c8ad84dfe48)
Diffstat (limited to 'target')
0 files changed, 0 insertions, 0 deletions