[cvs] bogofilter/src fgetsl.c,1.4,1.5

David Relson relson at osagesoftware.com
Sat Feb 22 22:25:55 CET 2003


At 04:05 PM 2/22/03, Matthias Andree wrote:

>relson at users.sourceforge.net writes:
>
> > Update of /cvsroot/bogofilter/bogofilter/src
> > In directory sc8-pr-cvs1:/tmp/cvs-serv32106
> >
> > Modified Files:
> >       fgetsl.c
> > Log Message:
> > When flex requests a single byte and gets none, it assumes EOF.
> > fgetsl() needs to return a byte if it can.
>
>What exactly is the case that this patch is supposed to fix? This change
>looks bogus to me and seems to enable calling fgetsl to force 0-length
>reads. Unless I'm mistaken, yyinput should request data without
>'\0'-termination, so requesting 1 byte should work.

Matthias,

Get a copy of Greg's messages and try procesing them with 0.10.3.  It 
doesn't work properly.  Given the long sequences of x's in 3.txt and 4.txt, 
the flex code keeps asking for more data to fill its buffer.  Eventually it 
asks for 1 byte and gets 0 bytes (using 0.10.3).  Flex interprets a return 
count of 0 as EOF and thinks it's done.

David






More information about the bogofilter-dev mailing list