diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-11-10 02:13:21 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-11-10 02:13:21 +0000 |
commit | 60e4a7332eee52114db4973c71ab3ea31618c0da (patch) | |
tree | d386aaacc8ca2edcd0a56eeb7f8ea35b92e75456 /textproc/libxml2 | |
parent | Hack around a bug where invalid XML documents would cause libxml to (diff) |
Actually add the patch to fix the crash.
Notes
Notes:
svn path=/head/; revision=121273
Diffstat (limited to 'textproc/libxml2')
-rw-r--r-- | textproc/libxml2/files/patch-error.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/libxml2/files/patch-error.c b/textproc/libxml2/files/patch-error.c new file mode 100644 index 000000000000..e50af6defec6 --- /dev/null +++ b/textproc/libxml2/files/patch-error.c @@ -0,0 +1,11 @@ +--- error.c.orig Tue Nov 9 21:08:54 2004 ++++ error.c Tue Nov 9 21:09:05 2004 +@@ -453,7 +453,7 @@ + return; + if ((domain == XML_FROM_PARSER) || (domain == XML_FROM_HTML) || + (domain == XML_FROM_DTD) || (domain == XML_FROM_NAMESPACE) || +- (domain == XML_FROM_IO) || (domain == XML_FROM_VALID)) { ++ (domain == XML_FROM_IO)) { + ctxt = (xmlParserCtxtPtr) ctx; + if ((schannel == NULL) && (ctxt != NULL) && (ctxt->sax != NULL) && + (ctxt->sax->initialized == XML_SAX2_MAGIC)) |