* 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:21:44 +00:00
parent 93ede233f5
commit 9c2c67e6fe
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>
The header can also be produced directly, without any obstack!