bin/140309: bad syntax cause yacc(1) segfault
Alexander Best
alexbestms at uni-muenster.de
Tue Jun 15 11:20:04 UTC 2010
The following reply was made to PR bin/140309; it has been noted by GNATS.
From: Alexander Best <alexbestms at uni-muenster.de>
To: bug-followup at FreeBSD.org
Cc: Philippe Pepiot <ksh at philpep.org>, Alexey Shuvaev <shuvaev at physik.uni-wuerzburg.de>
Subject: Re: bin/140309: bad syntax cause yacc(1) segfault
Date: Tue, 15 Jun 2010 13:14:26 +0200
--0016e64bb79059869304890fb5a3
Content-Type: text/plain; charset=ISO-8859-1
the following patch should fix the problem. it was imported from the
latest vendor version (2010-06-10) of byacc into our ancient K&R byacc
version dated 1993.
it might be a good idea to add the example file.y from this pr as a
regression test under tools/regression/usr.bin/yacc.
cheers.
alex
--
Alexander Best
--0016e64bb79059869304890fb5a3
Content-Type: text/plain; charset=US-ASCII; name="yacc.diff.txt"
Content-Disposition: attachment; filename="yacc.diff.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gagmwb5j0
SW5kZXg6IHVzci5iaW4veWFjYy9yZWFkZXIuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSB1c3IuYmluL3lhY2Mv
cmVhZGVyLmMJKHJldmlzaW9uIDIwOTE0MCkKKysrIHVzci5iaW4veWFjYy9yZWFkZXIuYwkod29y
a2luZyBjb3B5KQpAQCAtMTI1Niw5ICsxMjU2LDEyIEBACiAKICAgICBpZiAoIWxhc3Rfd2FzX2Fj
dGlvbiAmJiBwbGhzW25ydWxlc10tPnRhZykKICAgICB7Ci0JZm9yIChpID0gbml0ZW1zIC0gMTsg
cGl0ZW1baV07IC0taSkgY29udGludWU7Ci0JaWYgKHBpdGVtW2krMV0gPT0gMCB8fCBwaXRlbVtp
KzFdLT50YWcgIT0gcGxoc1tucnVsZXNdLT50YWcpCi0JICAgIGRlZmF1bHRfYWN0aW9uX3dhcm5p
bmcoKTsKKwlpZiAocGl0ZW1bbml0ZW1zIC0gMV0pCisJeworCSAgICBmb3IgKGkgPSBuaXRlbXMg
LSAxOyAoaSA+IDApICYmIHBpdGVtW2ldOyAtLWkpIGNvbnRpbnVlOworCSAgICBpZiAocGl0ZW1b
aSsxXSA9PSAwIHx8IHBpdGVtW2krMV0tPnRhZyAhPSBwbGhzW25ydWxlc10tPnRhZykKKwkJZGVm
YXVsdF9hY3Rpb25fd2FybmluZygpOworCX0KICAgICB9CiAKICAgICBsYXN0X3dhc19hY3Rpb24g
PSAwOwo=
--0016e64bb79059869304890fb5a3--
More information about the freebsd-bugs
mailing list