Re: [xml] Potential memory leek in xmlCreateMemoryParserCtxt

On Mon, Nov 18, 2002 at 10:53:28AM -0800, Martin Stoilov wrote:
    buf = xmlParserInputBufferCreateMem(buffer, size,
    if (buf == NULL) return(NULL); /* <-------------- potential leek */

    input = xmlNewInputStream(ctxt);
    if (input == 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 Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]