problem with stripping NULs from input?
Allyn Fratkin
allyn at fratkin.com
Wed Oct 23 06:20:09 CEST 2002
i submitted a patch a day or so ago to modify the lexer's use of
fgets to replace NUL characters with spaces. the problem being solved
is that most string routines, including fgets, treat a NUL as the end
of the string. anything past a NUL was ignored. worse, bogofilter treated
a line that started with NUL as the end of file and stopped reading further.
i don't use -p mode so this didn't occur to me before. the lexer is now
modifying the input in such a way that it cannot be properly output
if the -p option is in use. NULs are turned to spaces.
how serious is this in the short term? it seems as though this
will take a bit of effort to overcome and fix.
--
Allyn Fratkin allyn at fratkin.com
Escondido, CA http://www.fratkin.com/
More information about the bogofilter-dev
mailing list