Fix an venerable bug: if we're reducing a rule that has an empty
authorMichael Neumann <mneumann@dragonflybsd.org>
Sat, 12 Jul 2008 16:52:48 +0000 (16:52 +0000)
committerMichael Neumann <mneumann@dragonflybsd.org>
Sat, 12 Jul 2008 16:52:48 +0000 (16:52 +0000)
commit66b90a6f73ea0beca4f32d8eb38eb953f0b65ac5
treede31d2eac7ea17fb27d3fd55e2c89c95a654b51e
parent20dd6390506057a9bf6bcaf7af535ad525ad2b12
Fix an venerable bug: if we're reducing a rule that has an empty
right hand side and the yacc stackpointer is pointing at the very
end of the allocated stack, we end up accessing the stack out of
bounds by the implicit $$ = $1 action.

Obtained-from: OpenBSD (skeleton.c rev 1.29)
usr.bin/yacc/skeleton.c