Skip to content
No description, website, or topics provided.
C CMake Lua
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig Initial commit Jul 1, 2018
.gitignore Initial commit Jul 1, 2018
CMakeLists.txt Initial commit Jul 1, 2018
README.md replace 65000 constant with LUAI_MAXCCALLS Jul 1, 2018
lua.cmake Initial commit Jul 1, 2018
lua.patch Initial commit Jul 1, 2018
main.c pop nres from stack after lua_resume Jul 1, 2018
main.lua Initial commit Jul 1, 2018

README.md

luabug_nccalls

A small C program which reproduces a bug in Lua when a negative number is assigned to L->nCcalls (unsigned short), so it becomes >=LUAI_MAXCCALLS.

To build without a patch:

cmake . -Bbuild
cmake --build build
./build/luabug_nccalls

To build with a patch:

cmake . -Bbuild -DLUA_PATCH=1
cmake --build build
./build/luabug_nccalls
You can’t perform that action at this time.