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