diff options
| -rw-r--r-- | lparser.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -940,6 +940,8 @@ static void constructor (LexState *ls, expdesc *t) { | |||
| 940 | if (ls->t.token == '}') break; | 940 | if (ls->t.token == '}') break; |
| 941 | closelistfield(fs, &cc); | 941 | closelistfield(fs, &cc); |
| 942 | field(ls, &cc); | 942 | field(ls, &cc); |
| 943 | checklimit(fs, cc.tostore + cc.na + cc.nh, INT_MAX/2, | ||
| 944 | "items in a constructor"); | ||
| 943 | } while (testnext(ls, ',') || testnext(ls, ';')); | 945 | } while (testnext(ls, ',') || testnext(ls, ';')); |
| 944 | check_match(ls, '}', '{', line); | 946 | check_match(ls, '}', '{', line); |
| 945 | lastlistfield(fs, &cc); | 947 | lastlistfield(fs, &cc); |
