bogofilter 1.1.1 on 64 bit processors
David Relson <[email protected]> Tue, 7 Nov 2006 19:52:01 -0500
| Newsgroups | gmane.mail.bogofilter.devel,gmane.mail.bogofilter.general |
|---|---|
| Organization | Osage Software Systems, Inc. |
| Message-ID | <[email protected]> |
Greetings, In the past few days, there have been 3 reports of bogofilter crashing on 64 bit processors. Bogofilter's processor expects the queue id to be a particular format, but it seems that not all mailers agree on the correct format. The attached patch corrects the problem AFAIK. Regards, David _______________________________________________ Bogofilter-dev mailing list [email protected] http://www.bogofilter.org/mailman/listinfo/bogofilter-dev
patch.1107.lexer_v3_l.txt
(text/plain, 909 B)
--- 111/src/lexer_v3.l 2006-07-03 23:47:37.000000000 -0400
+++ cvs/src/lexer_v3.l 2006-11-06 19:04:06.000000000 -0500
@@ -1,4 +1,4 @@
-/* $Id: lexer_v3.l,v 1.167 2006/07/04 03:47:37 relson Exp $ */
+/* $Id: lexer_v3.l,v 1.169 2006/11/07 00:04:06 relson Exp $ */
%{
/*
@@ -137,7 +137,7 @@
BCHARS [[:alnum:]()+_,-./:=?#\' ]
MIME_BOUNDARY {BCHARS}*{BCHARSNOSPC}
-ID <?[[:alnum:]\-\.]*>?
+ID <?[[:alnum:]\-\.]+>?
CHARSET [[:alnum:]-]+
VERPID [[:alnum:]#-]+[[:digit:]]+[[:alnum:]#-]+
MTYPE [[:blank:]]*[[:alnum:]/-]*
@@ -252,7 +252,7 @@
<INITIAL>charset=\"?{CHARSET}\"? { got_charset(yytext); skip_to('='); return TOKEN; }
<INITIAL>(file)?name=\"? /* ignore */
-<INITIAL>\n?[[:blank:]]id\ {ID} { return QUEUE_ID; }
+<INITIAL>\n?[[:blank:]]id{WHITESPACE}+{ID} { return QUEUE_ID; }
<INITIAL>\n[[:blank:]] { lineno += 1; }
<INITIAL>\n\n { enum mimetype type = get_content_type();