The Lua development repository, as seen by the Lua team. Mirrored irregularly. Please DO NOT send pull requests. Report issues in the Lua mailing list https://www.lua.org/lua-l.html https://lua.org
Find a file
Roberto I 0b29f40843 Bug: UB when applying GC parameter
When computing whether Lua should return from gen-major to gen-minor,
the difference between the total memory and the previous total memory
can be negative, which can result in that negative value being
left-shifted (UB).
2026-09-16 14:18:11 -03:00
manual Details 2026-09-16 11:49:35 -03:00
testes Bug: UB when applying GC parameter 2026-09-16 14:18:11 -03:00
.gitignore 'lua_upvalueid' returns NULL on invalid upvalue index 2020-10-12 14:51:28 -03:00
all 'lua_checkstack' doesn't need to check stack overflow 2022-05-23 10:38:03 -03:00
lapi.c Details 2026-07-22 13:43:40 -03:00
lapi.h Using CIST_CLSRET instead of trick with 'nresults' 2024-07-19 17:34:22 -03:00
lauxlib.c Bug: 'luaL_newmetatable' used in a wrong way 2026-06-17 11:20:10 -03:00
lauxlib.h Special case for 'string.rep' over an empty string 2026-01-04 16:39:22 -03:00
lbaselib.c 'load' reader function doesn't need to preserve stack 2026-04-23 17:58:55 -03:00
lcode.c Cleaning 'luaP_isIT' and 'luaP_isOT' 2026-05-28 15:10:17 -03:00
lcode.h Global initialization checks name conflict 2025-11-08 11:43:42 -03:00
lcorolib.c In luaB_close, running coroutines do not go to default 2025-12-01 10:25:44 -03:00
lctype.c Details (comments) 2025-07-07 15:02:09 -03:00
lctype.h Better documentation for 'lctype.h' 2020-09-03 09:52:43 -03:00
ldblib.c Avoid macros luaL_loadbuffer and luaL_loadfile 2026-04-07 13:42:34 -03:00
ldebug.c Added casts to uses of 'sig_atomic' 2026-09-13 14:08:50 -03:00
ldebug.h Global initialization checks name conflict 2025-11-08 11:43:42 -03:00
ldo.c Removed unused function 'luaD_inctop' 2026-06-03 11:58:39 -03:00
ldo.h Removed unused function 'luaD_inctop' 2026-06-03 11:58:39 -03:00
ldump.c Change in dumping of NULL strings 2025-10-10 15:28:41 -03:00
lfunc.c Small cleaning services 2025-08-20 13:59:08 -03:00
lfunc.h New type 'TStatus' for thread status/error codes 2025-01-30 11:41:39 -03:00
lgc.c Bug: UB when applying GC parameter 2026-09-16 14:18:11 -03:00
lgc.h Macro 'luaC_condGC' should call pre/pos only once 2026-08-28 09:27:47 -03:00
linit.c llimits.h being used by all Lua code 2024-06-20 14:46:06 -03:00
liolib.c New compile option LUA_USE_OFF_T 2025-08-26 12:30:34 -03:00
ljumptab.h Global initialization checks name conflict 2025-11-08 11:43:42 -03:00
llex.c Some compilation options configurable from makefile 2026-01-20 13:06:16 -03:00
llex.h Slightly faster way to check for "global" 2025-05-16 14:51:07 -03:00
llimits.h Adjustment in useless parameter L in macros luai_num* 2026-03-15 15:14:14 -03:00
lmathlib.c Details 2026-09-16 11:49:35 -03:00
lmem.c GC back to controling pace counting bytes 2024-09-19 19:02:14 -03:00
lmem.h Array sizes in undump changed from unsigned to int 2025-02-20 10:09:04 -03:00
loadlib.c Avoid macros luaL_loadbuffer and luaL_loadfile 2026-04-07 13:42:34 -03:00
lobject.c Bug: UB when applying GC parameter 2026-09-16 14:18:11 -03:00
lobject.h Another try for silencing MSVS warning C4334 2026-09-15 10:03:36 -03:00
lopcodes.c Cleaning 'luaP_isIT' and 'luaP_isOT' 2026-05-28 15:10:17 -03:00
lopcodes.h Cleaning 'luaP_isIT' and 'luaP_isOT' 2026-05-28 15:10:17 -03:00
lopnames.h Global initialization checks name conflict 2025-11-08 11:43:42 -03:00
loslib.c Details 2026-09-16 11:49:35 -03:00
lparser.c Small change in scope of variables in repeat-until 2026-07-23 13:58:30 -03:00
lparser.h Bug: 'lua_load' does not preserve the stack 2026-04-23 17:57:42 -03:00
lprefix.h Several details about 5.4.0 rc1 2020-04-23 14:48:15 -03:00
lstate.c new macro 'setnilvalue2s' 2026-04-23 18:00:23 -03:00
lstate.h Avoid casts to 'union GCUnion*' 2026-07-21 16:51:04 -03:00
lstring.c Details 2025-10-14 13:50:24 -03:00
lstring.h Details 2025-10-14 13:50:24 -03:00
lstrlib.c Bug: wrong initialization in result from 'gmatch' 2026-04-01 15:01:58 -03:00
ltable.c Details 2026-01-04 16:27:54 -03:00
ltable.h Randomness added to table length computation 2025-07-18 16:18:30 -03:00
ltablib.c 'table.tunpack' using 'aux_getn' like the others 2026-03-09 16:24:49 -03:00
ltests.c new macro 'setnilvalue2s' 2026-04-23 18:00:23 -03:00
ltests.h Some compilation options configurable from makefile 2026-01-20 13:06:16 -03:00
ltm.c new macro 'setnilvalue2s' 2026-04-23 18:00:23 -03:00
ltm.h Details 2025-12-30 10:50:49 -03:00
lua.c Details 2026-04-21 15:27:22 -03:00
lua.h New year and (eventual) new release 2026-01-29 14:24:25 -03:00
luaconf.h Details 2026-07-22 13:43:40 -03:00
lualib.h New interface to function 'luaL_openselectedlibs' 2024-02-15 11:17:39 -03:00
lundump.c Bug: 'lua_load' does not preserve the stack 2026-04-23 17:57:42 -03:00
lundump.h Bug: 'lua_load' does not preserve the stack 2026-04-23 17:57:42 -03:00
lutf8lib.c Details 2026-03-09 16:24:06 -03:00
lvm.c Added casts to uses of 'sig_atomic' 2026-09-13 14:08:50 -03:00
lvm.h Details 2025-01-16 11:51:16 -03:00
lzio.c Cleaning of llimits.h 2024-06-20 13:43:33 -03:00
lzio.h Added gcc option '-Wconversion' 2024-07-27 13:32:59 -03:00
makefile Details 2026-04-28 13:44:29 -03:00
onelua.c update in 'onelua.c' 2025-08-26 12:30:05 -03:00
README.md Details 2020-12-02 15:13:13 -03:00

Lua

This is the repository of Lua development code, as seen by the Lua team. It contains the full history of all commits but is mirrored irregularly. For complete information about Lua, visit Lua.org.

Please do not send pull requests. To report issues, post a message to the Lua mailing list.

Download official Lua releases from Lua.org.