[Bug 193499] [tests] usr.bin/yacc/err_syntax27.error failures with the latest kyua

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Oct 5 20:41:17 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193499

--- Comment #8 from Craig Rodrigues <rodrigc at FreeBSD.org> ---
I managed to get rid of the valgrind errors with this patch to byacc:

Index: contrib/byacc/reader.c
===================================================================
--- contrib/byacc/reader.c      (revision 272333)
+++ contrib/byacc/reader.c      (working copy)
@@ -134,6 +134,7 @@
     for (;;)
     {
        line[i] = (char)c;
+       line[i + 1] = 0;
        if (c == '\n')
            break;
        if (++i >= linesize)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-testing mailing list