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

Matthias Andree <[email protected]>
Newsgroups gmane.mail.bogofilter.devel
Message-ID <[email protected]>
David Relson <[email protected]> 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
_______________________________________________
Bogofilter-dev mailing list
[email protected]
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.