diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-10-09 16:13:36 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-10-09 16:13:36 +0000 |
commit | 13b7e1b18c97dac87ba4faa4f6d42853d8bcc3e6 (patch) | |
tree | a121e9833bb25cad8db4a28c1d7a848092d9bd4d /textproc/libxml2/files | |
parent | 115dee9acde5e5d86d6ad24158b68bc2ace602df (diff) | |
download | ports-13b7e1b18c97dac87ba4faa4f6d42853d8bcc3e6.tar.gz ports-13b7e1b18c97dac87ba4faa4f6d42853d8bcc3e6.zip |
Notes
Diffstat (limited to 'textproc/libxml2/files')
-rw-r--r-- | textproc/libxml2/files/patch-temp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/textproc/libxml2/files/patch-temp b/textproc/libxml2/files/patch-temp new file mode 100644 index 000000000000..8d351d583eb2 --- /dev/null +++ b/textproc/libxml2/files/patch-temp @@ -0,0 +1,55 @@ +This patch is from CVS and fixes a seg fault due to some bad memory +management. This will be fixed in the next release. + +--- valid.c.orig Wed Oct 9 12:03:48 2002 ++++ valid.c Wed Oct 9 12:06:17 2002 +@@ -4551,9 +4551,9 @@ + xmlElementPtr elemDecl, int warn, xmlNodePtr parent) { + int ret = 1; + #ifndef LIBXML_REGEXP_ENABLED +- xmlNodePtr last = NULL; ++ xmlNodePtr last = NULL, last = NULL, tmp; + #endif +- xmlNodePtr repl = NULL, cur, tmp; ++ xmlNodePtr cur; + xmlElementContentPtr cont; + const xmlChar *name; + +@@ -4571,6 +4571,9 @@ + } else { + xmlRegExecCtxtPtr exec; + ++ ctxt->nodeMax = 0; ++ ctxt->nodeNr = 0; ++ ctxt->nodeTab = NULL; + exec = xmlRegNewExecCtxt(elemDecl->contModel, NULL, NULL); + if (exec != NULL) { + cur = child; +@@ -4762,9 +4765,11 @@ + expr[0] = 0; + xmlSnprintfElementContent(expr, 5000, cont, 1); + list[0] = 0; ++#ifndef LIBXML_REGEXP_ENABLED + if (repl != NULL) + xmlSnprintfElements(list, 5000, repl, 1); + else ++#endif /* LIBXML_REGEXP_ENABLED */ + xmlSnprintfElements(list, 5000, child, 1); + + if (name != NULL) { +@@ -4797,7 +4802,6 @@ + + #ifndef LIBXML_REGEXP_ENABLED + done: +-#endif + /* + * Deallocate the copy if done, and free up the validation stack + */ +@@ -4811,6 +4815,7 @@ + xmlFree(ctxt->vstateTab); + ctxt->vstateTab = NULL; + } ++#endif + ctxt->nodeMax = 0; + ctxt->nodeNr = 0; + if (ctxt->nodeTab != NULL) { |