We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ac9d23 commit 934fdd4Copy full SHA for 934fdd4
lparser.c
@@ -940,6 +940,8 @@ static void constructor (LexState *ls, expdesc *t) {
940
if (ls->t.token == '}') break;
941
closelistfield(fs, &cc);
942
field(ls, &cc);
943
+ checklimit(fs, cc.tostore + cc.na + cc.nh, INT_MAX/2,
944
+ "items in a constructor");
945
} while (testnext(ls, ',') || testnext(ls, ';'));
946
check_match(ls, '}', '{', line);
947
lastlistfield(fs, &cc);
0 commit comments