[cvs] bogofilter/src datastore_sqlite.c,1.19,1.20

Matthias Andree matthias.andree at gmx.de
Tue Mar 15 11:29:12 CET 2005


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

> Log Message:
> Correct additional malloc/xmalloc errors.
>
> Index: datastore_sqlite.c
> ===================================================================
> RCS file: /cvsroot/bogofilter/bogofilter/src/datastore_sqlite.c,v
> retrieving revision 1.19
> retrieving revision 1.20
> diff -u -d -r1.19 -r1.20
> --- datastore_sqlite.c	15 Mar 2005 01:06:39 -0000	1.19
> +++ datastore_sqlite.c	15 Mar 2005 01:31:16 -0000	1.20
> @@ -238,7 +238,7 @@
>  		{
>  		    u_int32_t p[2] = { 0x01020304, 0x01020304 };
>  		    int rc2;
> -		    k.data = strdup(ENDIAN32);
> +		    k.data = xstrdup(ENDIAN32);

Thanks for catching & fixing this. When I wrote this code, I must have
thought "static copy, won't fail" - which is of course bogus.

-- 
Matthias Andree
_______________________________________________
Bogofilter-dev mailing list
Bogofilter-dev at bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev



More information about the bogofilter-dev mailing list