[cvs] bogofilter/src lexer.c,1.142,1.143
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: David R. <re...@us...> - 2005-10-23 15:16:04
|
Update of /cvsroot/bogofilter/bogofilter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9754/src Modified Files: lexer.c Log Message: Fix possible SIGSEGV. Index: lexer.c =================================================================== RCS file: /cvsroot/bogofilter/bogofilter/src/lexer.c,v retrieving revision 1.142 retrieving revision 1.143 diff -u -d -r1.142 -r1.143 --- lexer.c 22 Oct 2005 16:53:21 -0000 1.142 +++ lexer.c 23 Oct 2005 15:15:55 -0000 1.143 @@ -90,6 +90,11 @@ uint i; for (i=0; i < count; i += 1) { byte c = buf[i]; + /* 10/23/05 - fix SIGSEGV with msg.1023.6479.txt + ** evidently caused by 09/07/05 patch for 0.96.2 + */ + if (c == '\0') + break; if ((iscntrl(c) || isspace(c) || ispunct(c)) && (c != '_')) return false; } |