redis/deps/lua/src
Meir Shpilraien (Spielrein) a8c1253b6f
Fix Lua C API violation on lua msgpack lib. (#9832)
msgpack lib missed using lua_checkstack and so on rare
cases overflow the stack by at most 2 elements. This is a
violation of the Lua C API. Notice that Lua allocates
additional 5 more elements on top of lua->stack_last
so Redis does not access an invalid memory. But it is an
API violation and we should avoid it.

This PR also added a new Lua compilation option. The new
option can be enable using environment variable called
LUA_DEBUG. If set to `yes` (by default `no`), Lua will be
compiled without optimizations and with debug symbols (`-O0 -g`).
In addition, in this new mode, Lua will be compiled with the
`-DLUA_USE_APICHECK` flag that enables extended Lua C API
validations.

In addition, set LUA_DEBUG=yes on daily valgrind flow so we
will be able to catch Lua C API violations in the future.
2021-11-28 11:33:09 +02:00
..
Makefile Merge remote-tracking branch 'origin/unstable' into unstable 2014-11-14 17:10:48 +01:00
fpconv.c Lua: Upgrade cjson to 2.1.0 (2012-03-01) 2014-11-14 17:08:33 +01:00
fpconv.h Lua: remove new warning added by cjson header 2014-11-14 17:08:44 +01:00
lapi.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lapi.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lauxlib.c Fix compilation warnings in Lua and jemalloc dependencies (#7785) 2020-09-29 17:10:54 +03:00
lauxlib.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lbaselib.c Lua updated to version 5.1.5. 2013-04-29 12:00:54 +02:00
lcode.c Lua updated to version 5.1.5. 2013-04-29 12:00:54 +02:00
lcode.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
ldblib.c Lua updated to version 5.1.5. 2013-04-29 12:00:54 +02:00
ldebug.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
ldebug.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
ldo.c Fix compilation warnings in Lua and jemalloc dependencies (#7785) 2020-09-29 17:10:54 +03:00
ldo.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
ldump.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lfunc.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lfunc.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lgc.c Lua updated to version 5.1.5. 2013-04-29 12:00:54 +02:00
lgc.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
linit.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
liolib.c Lua updated to version 5.1.5. 2013-04-29 12:00:54 +02:00
llex.c Lua updated to version 5.1.5. 2013-04-29 12:00:54 +02:00
llex.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
llimits.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lmathlib.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lmem.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lmem.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
loadlib.c Lua updated to version 5.1.5. 2013-04-29 12:00:54 +02:00
lobject.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lobject.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lopcodes.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lopcodes.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
loslib.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lparser.c Lua updated to version 5.1.5. 2013-04-29 12:00:54 +02:00
lparser.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lstate.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lstate.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lstring.c Lua: Use all characters to calculate string hash (#9449) 2021-09-09 12:47:26 +03:00
lstring.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lstrlib.c Lua updated to version 5.1.5. 2013-04-29 12:00:54 +02:00
ltable.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
ltable.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
ltablib.c Fix compilation warnings in Lua and jemalloc dependencies (#7785) 2020-09-29 17:10:54 +03:00
ltm.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
ltm.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lua.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lua.h Lua updated to version 5.1.5. 2013-04-29 12:00:54 +02:00
lua_bit.c Lua: Add bitop 2014-10-09 11:51:30 -04:00
lua_cjson.c lua_cjson.c Lua includes: angled -> quoted. 2014-11-14 17:16:23 +01:00
lua_cmsgpack.c Fix Lua C API violation on lua msgpack lib. (#9832) 2021-11-28 11:33:09 +02:00
lua_struct.c [FIX] revisit CVE-2015-8080 vulnerability 2020-02-10 16:32:46 +09:00
luac.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
luaconf.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lualib.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lundump.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lundump.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lvm.c Lua updated to version 5.1.5. 2013-04-29 12:00:54 +02:00
lvm.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lzio.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
lzio.h makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
print.c makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 2011-05-25 12:32:43 +02:00
strbuf.c Lua: Upgrade cjson to 2.1.0 (2012-03-01) 2014-11-14 17:08:33 +01:00
strbuf.h Lua: Upgrade cjson to 2.1.0 (2012-03-01) 2014-11-14 17:08:33 +01:00