Subject: Re: awk bug in current ?
To: Steven M. Bellovin <email@example.com>
From: John R. Shannon <firstname.lastname@example.org>
Date: 03/19/2006 11:12:59
Steven M. Bellovin wrote:
> On Sun, 19 Mar 2006 09:44:14 -0800, walt <email@example.com> wrote:
>> As a temporary workaround until Christos can do the correct fix,
>> just delete line 890 of /usr/src/dist/nawk/b.c and recompile
>> and reinstall /usr/src/usr.bin/awk.
>> Here is the line to be deleted:
>> assert(c < NCHARS);
>> That should allow us to rebuild the system when the correct
>> fix is committed.
> Note, of course, that deleting that line enables a very clear buffer
> --Steven M. Bellovin, http://www.cs.columbia.edu/~smb
nas$ diff /usr/src/dist/nawk/b.c /usr/src/dist/nawk/b.c.orig
< if (c < NCHARS)
< f->gototab[s][c] = i;
> assert(c < NCHARS);
> f->gototab[s][c] = i;
would be safer. From the prior assertion:
assert(c == HAT || c < NCHARS);
it follows that c == HAT. I'm unsure what the correct action should be
in that case.
John R. Shannon, CISSP