1 Expression list with four or more expressions in a 'for' loop can crash the interpreter.
3 Fetch from: https://www.lua.org/bugs.html#5.3.3-1
5 Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
10 luaK_nil(fs, reg, extra);
14 + ls->fs->freereg -= nexps - nvars; /* remove extra values */
18 @@ -1160,11 +1162,8 @@
21 nexps = explist(ls, &e);
22 - if (nexps != nvars) {
24 adjust_assign(ls, nvars, nexps, &e);
26 - ls->fs->freereg -= nexps - nvars; /* remove extra values */
29 luaK_setoneret(ls->fs, &e); /* close last expression */
30 luaK_storevar(ls->fs, &lh->v, &e);