[xml] segfault in xmlSAXParseDTD



yep,

in xmlSAXParseDTD(), SAX handlers are not given the correct context, I guess.
but, behaviour is as expected with the following patch...

or, am I wrong with what this should do ?

--- libxml2-2.4.10.orig/parser.c        Fri Nov  2 04:35:07 2001
+++ libxml2-2.4.10/parser.c     Thu Dec 20 21:26:26 2001
@@ -8984,7 +8984,7 @@
        if (ctxt->sax != NULL)
            xmlFree(ctxt->sax);
         ctxt->sax = sax;
-        ctxt->userData = NULL;
+        ctxt->userData = ctxt;
     }
 
     /*



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