From owner-freebsd-bugs@FreeBSD.ORG Tue Jun 15 11:20:04 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0311D1065672 for ; Tue, 15 Jun 2010 11:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E29D88FC1E for ; Tue, 15 Jun 2010 11:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5FBK34X063731 for ; Tue, 15 Jun 2010 11:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5FBK3c1063730; Tue, 15 Jun 2010 11:20:03 GMT (envelope-from gnats) Date: Tue, 15 Jun 2010 11:20:03 GMT Message-Id: <201006151120.o5FBK3c1063730@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Alexander Best Cc: Subject: Re: bin/140309: bad syntax cause yacc(1) segfault X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2010 11:20:04 -0000 The following reply was made to PR bin/140309; it has been noted by GNATS. From: Alexander Best To: bug-followup@FreeBSD.org Cc: Philippe Pepiot , Alexey Shuvaev 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--