mirror of https://github.com/lua/lua.git
Browse Source
In 'lundump.c', when loading the upvalues of a function, there can be a read error if the chunk is truncated. In that case, the creation of the error message can trigger an emergency collection while the prototype is still anchored. So, the prototype must be GC consistent before loading the upvales, which implies that it the 'name' fields must be filled with NULL before the reading.pull/24/head
Roberto Ierusalimschy
4 years ago
3 changed files with 24 additions and 7 deletions
Loading…
Reference in new issue