* src/nullable.c (set_nullable): Useless rules must be skipped,

otherwise, since we range over their symbols, we might look at a
nonterminal which no longer ``exists'', i.e., it is not counted in
`nvars', hence we overflow our arrays.
This commit is contained in:
Akim Demaille
2001-12-15 16:22:13 +00:00
parent 52e9776027
commit f30e1ab65c
2 changed files with 37 additions and 27 deletions

View File

@@ -1,3 +1,10 @@
2001-12-15 Akim Demaille <akim@epita.fr>
* src/nullable.c (set_nullable): Useless rules must be skipped,
otherwise, since we range over their symbols, we might look at a
nonterminal which no longer ``exists'', i.e., it is not counted in
`nvars', hence we overflow our arrays.
2001-12-15 Akim Demaille <akim@epita.fr>
* src/reader.c (copy_action): When --yacc, don't append a `;'