Re: Bug in luaL_newmetatable: undersized table hint causes permanent corruption under OOM
Roberto Ierusalimschy <[email protected]> Mon, 8 Jun 2026 17:12:28 -0300
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <[email protected]> |
> I found a bug in luaL_newmetatable (lauxlib.c, line 318 on current master) > where the table creation hint of 2 is too small, causing an incomplete > metatable to persist in the registry after a memory allocation failure. > > The problem: > > [...] Your diagnostic seems correct. Many thanks for the feedback. -- Roberto -- You received this message because you are subscribed to the Google Groups "lua-l" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/lua-l/20260608201228.GA215679%40arraial.inf.puc-rio.br.