mirror of
https://github.com/lua/lua.git
synced 2025-01-14 05:43:00 +08:00
Roberto Ierusalimschy
f9d857a81b
Stack reallocation done in two phases
$he stack reallocation is done in two steps (allocation + free) because the correction of the pointers pointing into the stack must be done while both addresses (the old stack and the new one) are valid. In ISO C, any pointer use after the pointer has been deallocated is undefined behavior. The compiler option '-fsanitize=pointer-subtract' (plus what it needs to work) complained about the old implementation.
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.
Description
Languages
C
67.4%
Lua
32%
Makefile
0.6%