[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] correct some memory problem

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-03-14 21:12:04 CET

On Thu, Mar 14, 2002 at 09:26:05AM +0100, Luc Saillard wrote:
> Hi,
> I use mpatrol to find some memory problem like memleak, or double free.
>
> I found that the libexpat try to do a memcpy on a null pointer at
> expat-lite/xmlparse.c:3249, because the pool->start is null (in fact all
> members of pool is set to zero).
>
> The firest patch is to correct the memcpy with a NULL pointer address source.
> The second and third patch is to correct a free on a NULL pointer.

These bugs have all been fixed in recent versions of Expat (the expat-lite
directory is derived from Expat 1.1). The best thing that we could do would
be to use the Expat provided by or found by apr-util.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 14 21:09:45 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.