Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/yacc



Module Name:    src
Committed By:   drochner
Date:           Thu Jul 17 16:28:14 UTC 2008

Modified Files:
        src/usr.bin/yacc: skeleton.c

Log Message:
fix a longstanding bug, from Otto Moerbeck:
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

do it a bit differently than in Openbsd: avoid pulling in <string.h>
because this is not compatible with wacky namespace games we do in libc


To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 src/usr.bin/yacc/skeleton.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index