mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
* src/reader.c (packgram): Catch nitems overflows.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2001-12-27 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/reader.c (packgram): Catch nitems overflows.
|
||||
|
||||
|
||||
2001-12-27 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* src/files.c, src/files.h (guard_obstack): Remove.
|
||||
|
||||
5
NEWS
5
NEWS
@@ -2,6 +2,11 @@ Bison News
|
||||
----------
|
||||
|
||||
Changes in version 1.49a:
|
||||
|
||||
* items overflow
|
||||
Bison no longer dumps core when there are too many items, it just
|
||||
dies.
|
||||
|
||||
|
||||
Changes in version 1.30:
|
||||
|
||||
|
||||
@@ -1692,6 +1692,10 @@ packgram (void)
|
||||
int ruleno;
|
||||
symbol_list *p;
|
||||
|
||||
/* We use short to index items. */
|
||||
if (nitems >= MAXSHORT)
|
||||
fatal (_("too many items (max %d)"), MAXSHORT);
|
||||
|
||||
ritem = XCALLOC (short, nitems + 1);
|
||||
rule_table = XCALLOC (rule_t, nrules) - 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user