Invalid buffer size in bogofilter 0.15.1

Jason Rennie jrennie at ai.mit.edu
Thu Sep 4 17:23:32 CEST 2003


When I apply this (David's) patch to the 0.15.1 code, I no longer get the
invalid buffer size error.

Jason

--- lexer.c	2 Sep 2003 16:19:04 -0000	1.63
+++ lexer.c	2 Sep 2003 21:13:50 -0000
@@ -205,6 +206,8 @@
 		convert_eol(text, ' ');
 	    }
 	}
+	if (buff->size - count < 1000)
+	    break;
     }
     return count;
 }






More information about the Bogofilter mailing list