bogofilter 1.1.1 on 64 bit processors

David Relson relson at osagesoftware.com
Wed Nov 8 01:52:01 CET 2006


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
-------------- next part --------------
--- 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();


More information about the bogofilter mailing list