From owner-freebsd-current@FreeBSD.ORG Tue Jul 8 19:45:32 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89BDF1065677 for ; Tue, 8 Jul 2008 19:45:32 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.181]) by mx1.freebsd.org (Postfix) with ESMTP id 0D2268FC24 for ; Tue, 8 Jul 2008 19:45:26 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by ik-out-1112.google.com with SMTP id c30so1432522ika.3 for ; Tue, 08 Jul 2008 12:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:received :date:from:to:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; bh=SIe5WdmzHrMz1azvIIo56VEsMnhTZKKhx8sQDhCyTFs=; b=qyUCaob8+hFNYbfLCxuES0vbphul/LEx3i+W9u56g52zdW8I3t4QvaonLUGQrR8wXB cm/o+8aULGpS2gzCBzWx8j6FLiIYq53PXTmVsdFX/EqK2dD92wJcRHEknKuyQ6i7rARi bueRJgqRtkzZ4iRT9+736e1aJJPkBnGlpd280= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-type:content-disposition:user-agent; b=ARMJVVotO/3qdGfNlfWbKRY96P9cfx6Wmc3TxwWC0uf024PqsuPq2VS/T0up0LID+j DB+87H/d4XLpk8INloIG/xgm0J2B70L+VI4IQOEuP5NbJ8iXT38unC4TQmTqflrVaFRZ L32Rg68R7sb6zdt+fQISl24wfhwBQtpEJJhwQ= Received: by 10.210.46.12 with SMTP id t12mr4394184ebt.64.1215546325201; Tue, 08 Jul 2008 12:45:25 -0700 (PDT) Received: from acme.spoerlein.net ( [217.172.44.86]) by mx.google.com with ESMTPS id c25sm9254555ika.11.2008.07.08.12.45.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Jul 2008 12:45:24 -0700 (PDT) Received: from roadrunner.spoerlein.net (e180158225.adsl.alicedsl.de [85.180.158.225]) by acme.spoerlein.net (8.14.2/8.14.2) with ESMTP id m68JiUOc014189 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 8 Jul 2008 21:44:31 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.2/8.14.2) with ESMTP id m68JjJHX009845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 8 Jul 2008 21:45:19 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from uqs@localhost) by roadrunner.spoerlein.net (8.14.2/8.14.2/Submit) id m68JjIQP009844 for current@freebsd.org; Tue, 8 Jul 2008 21:45:18 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Tue, 8 Jul 2008 21:45:18 +0200 From: Ulrich Spoerlein To: current@freebsd.org Message-ID: <20080708194517.GA9655@roadrunner.spoerlein.net> Mail-Followup-To: current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: OpenBSD finds 33 year old bug in yacc(1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2008 19:45:32 -0000 Hi, I may have used yacc(1) once, but am in no position to analyze our yacc wrt. the bug found here[1] I grepped the offending pattern, though and it matches right here: % grep -A1 -r 'yym.*=.*yylen' /usr/src/usr.bin/yacc /usr/src/usr.bin/yacc/skeleton.c: " yym = yylen[yyn];", /usr/src/usr.bin/yacc/skeleton.c- " yyval = yyvsp[1-yym];", -- /usr/src/usr.bin/yacc/test/error.tab.c: yym = yylen[yyn]; /usr/src/usr.bin/yacc/test/error.tab.c- yyval = yyvsp[1-yym]; -- /usr/src/usr.bin/yacc/test/ftp.tab.c: yym = yylen[yyn]; /usr/src/usr.bin/yacc/test/ftp.tab.c- yyval = yyvsp[1-yym]; I didn't find any recent commits to these files, so perhaps the bug is still there? [1] http://undeadly.org/cgi?action=article&sid=20080708155228 Cheers, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt.