mirror_zfs/module
Richard Yao 587a39b729
Lua: Fix bad bitshift in lua_strx2number()
The port of lua to OpenZFS modified lua to use int64_t for numbers
instead of double. As part of this, a function for calculating
exponentiation was replaced with a bit shift. Unfortunately, it did not
handle negative values. Also, it only supported exponents numbers with
7 digits before before overflow. This supports exponents up to 15 digits
before overflow.

Clang's static analyzer reported this as "Result of operation is garbage
or undefined" because the exponent was negative.

Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14204
2022-11-29 09:53:33 -08:00
..
avl
icp Convert some sprintf() calls to kmem_scnprintf() 2022-11-28 13:49:58 -08:00
lua Lua: Fix bad bitshift in lua_strx2number() 2022-11-29 09:53:33 -08:00
nvpair
os FreeBSD: stop using buffer cache-only routines on sync 2022-11-29 09:35:25 -08:00
unicode
zcommon Convert some sprintf() calls to kmem_scnprintf() 2022-11-28 13:49:58 -08:00
zfs Remove few pointer dereferences in dbuf_read() 2022-11-29 09:49:02 -08:00
zstd
.gitignore
Kbuild.in
Makefile.bsd
Makefile.in