Openwrt/package
Liangbin Lian 4bb9af48ca lua: lnum: fix strtoul based number parsing
Lua's LNUM patch currently doesn't parse properly certain numbers as
it's visible from the following simple tests.

On x86_64 host (stock Lua 5.1.5, expected output):

 $ /usr/bin/lua -e 'print(0x80000000); print(0x80000000000); print(0x100000000)'

  2147483648
  8796093022208
  4294967296

On x86_64 host:

 $ staging_dir/hostpkg/bin/lua -e 'print(0x80000000); print(0x80000000000); print(0x100000000)'

  -2147483648
  0
  0

On x86_64 target:

 $ lua -e 'print(0x80000000); print(0x80000000000); print(0x100000000)'

  -2147483648
  0
  0

On ath79 target:

 $ lua -e 'print(0x80000000); print(0x80000000000); print(0x100000000)'

  -2147483648
  8796093022208
  4294967296

It's caused by two issues fixed in this patch, first issue is caused by
unhadled strtoul overflow and second one is caused by the cast of
unsigned to signed Lua integer when parsing from hex literal.

Run tested on:

 * Zidoo Z9S with RTD1296 CPU (aarch64_cortex-a53)
 * qemu/x86_64
 * qemu/armvirt_64
 * ath79

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
[commit subject/message touches, fixed From to match SOB, fixed another
 unhandled case in luaO_str2i, host Lua, package bump]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-05-23 10:19:52 +02:00
..
base-files base-files: add support for the new ar8xxx MIB counters settings 2019-05-20 21:19:48 +02:00
boot uboot-imx6: bump to 2019.04 and refresh patches 2019-05-20 21:19:48 +02:00
devel valgrind: Add support for ARM64 architecture 2019-05-14 20:28:41 +02:00
firmware ipq40xx: Add support for Linksys EA8300 (Dallas) 2019-05-18 13:43:54 +02:00
kernel ath10k-ct: Update to current version 2019-05-11 16:37:11 +02:00
libs libbsd: Fix compilation under ARC 2019-05-17 21:41:43 +02:00
network iwinfo: update to latest git HEAD 2019-05-21 14:24:18 +02:00
system gemini: Fix up firmware checksum on DIR-685 2019-05-18 16:37:30 +02:00
utils lua: lnum: fix strtoul based number parsing 2019-05-23 10:19:52 +02:00
Makefile