diff options
author | Alex Orlenko <zxteam@protonmail.com> | 2022-11-07 00:10:57 +0000 |
---|---|---|
committer | Alex Orlenko <zxteam@protonmail.com> | 2022-11-07 00:10:57 +0000 |
commit | f27c49f931c07b26513284324cf20b2941b6db4b (patch) | |
tree | 19a209b4ebfc3e630524791f1b607f7b28991216 /.gitignore | |
parent | 693a808b6eb0374ebb2fce24604752275d55d402 (diff) | |
download | mlua-f27c49f931c07b26513284324cf20b2941b6db4b.zip |
Fix bug when recycled Registry slot can be set to Nil.
This can result in allocating the same slot twice and rewriting old value.
Lua uses (registry) table length to find next free slot and having Nil in the middle of the table can impact length calculation.
With this fix we ensure that Nil values uses a special LUA_REFNIL slot.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions