[cvs] bogofilter/src lexer.c,1.135,1.136

Matthias Andree matthias.andree at gmx.de
Wed Jun 29 10:46:34 CEST 2005


David Relson <relson at users.sourceforge.net> writes:

> Update of /cvsroot/bogofilter/bogofilter/src
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18317
>
> Modified Files:
> 	lexer.c 
> Log Message:
> Fix buffer allocation error.
>
> Index: lexer.c
> ===================================================================
> RCS file: /cvsroot/bogofilter/bogofilter/src/lexer.c,v
> retrieving revision 1.135
> retrieving revision 1.136
> diff -u -d -r1.135 -r1.136
> --- lexer.c	26 Jun 2005 22:44:32 -0000	1.135
> +++ lexer.c	28 Jun 2005 20:46:16 -0000	1.136
> @@ -363,7 +363,7 @@
>      else {
>  	if (charset_leng < len) {
>  	    charset_leng = len;
> -	    charset_text = xrealloc(charset_text, charset_leng);
> +	    charset_text = xrealloc(charset_text, charset_leng+D);

Why is the lack of the additional D buffer a "buffer allocation error"?
D is a debug feature, so either there was no error or the fix is wrong.

-- 
Matthias Andree



More information about the bogofilter-dev mailing list