Re: [xml] Potential memory leek in xmlCreateMemoryParserCtxt
- From: Daniel Veillard <veillard redhat com>
- To: Martin Stoilov <mstoilov odesys com>
- Cc: xml gnome org
- Subject: Re: [xml] Potential memory leek in xmlCreateMemoryParserCtxt
- Date: Tue, 19 Nov 2002 03:11:30 -0500
On Mon, Nov 18, 2002 at 10:53:28AM -0800, Martin Stoilov wrote:
buf = xmlParserInputBufferCreateMem(buffer, size,
XML_CHAR_ENCODING_NONE);
if (buf == NULL) return(NULL); /* <-------------- potential leek */
input = xmlNewInputStream(ctxt);
if (input == NULL) {
xmlFreeParserCtxt(ctxt);
return(NULL);
yep, and another potential one with buf here... It takes out of memory
conditions to reach them, but they should be fixed. patch commited in CVS,
thanks !
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]