[xml] segfault in xmlSAXParseDTD
- From: guillaume pernot <gpernot free fr>
- To: xml gnome org
- Subject: [xml] segfault in xmlSAXParseDTD
- Date: 20 Dec 2001 21:37:29 +0100
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]