aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-06-30 15:36:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-06-30 15:36:26 -0300
commit422ce50d2e8856ed789d1359c673122dbb0088ea (patch)
tree163c566c322915b12d13e4b1d1966d5658e19086 /llex.c
parentc33b1728aeb7dfeec4013562660e07d32697aa6b (diff)
downloadlua-422ce50d2e8856ed789d1359c673122dbb0088ea.tar.gz
lua-422ce50d2e8856ed789d1359c673122dbb0088ea.tar.bz2
lua-422ce50d2e8856ed789d1359c673122dbb0088ea.zip
Fixed detail in 'loadUpvalues'
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.
Diffstat (limited to 'llex.c')
0 files changed, 0 insertions, 0 deletions