login
Header Space

 
 

OpenBSD finds 33 year old bug in yacc(1)

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <current@...>
Date: Tuesday, July 8, 2008 - 3:45 pm

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.
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
OpenBSD finds 33 year old bug in yacc(1), Ulrich Spoerlein, (Tue Jul 8, 3:45 pm)
Re: OpenBSD finds 33 year old bug in yacc(1), Marcel Moolenaar, (Tue Jul 8, 3:56 pm)
speck-geostationary