diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 18:52:46 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 18:52:46 (GMT) |
commit | f2be005f4a1b502032566d4040091ef602bee07a (patch) | |
tree | 5e999ae1f653c036459a8ffc5448037550b07e91 /abs/core/libxml2/libxml2-2.7.8-xpath-freeing.patch | |
parent | 297ec2f39c4d69b1434c39d0ed5af61404dbe677 (diff) | |
download | linhes_pkgbuild-f2be005f4a1b502032566d4040091ef602bee07a.zip linhes_pkgbuild-f2be005f4a1b502032566d4040091ef602bee07a.tar.gz linhes_pkgbuild-f2be005f4a1b502032566d4040091ef602bee07a.tar.bz2 |
libxml2: 2.7.8
Diffstat (limited to 'abs/core/libxml2/libxml2-2.7.8-xpath-freeing.patch')
-rw-r--r-- | abs/core/libxml2/libxml2-2.7.8-xpath-freeing.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/abs/core/libxml2/libxml2-2.7.8-xpath-freeing.patch b/abs/core/libxml2/libxml2-2.7.8-xpath-freeing.patch new file mode 100644 index 0000000..2844f4a --- /dev/null +++ b/abs/core/libxml2/libxml2-2.7.8-xpath-freeing.patch @@ -0,0 +1,30 @@ +commit df83c17e5a2646bd923f75e5e507bc80d73c9722 +Author: Daniel Veillard <veillard@redhat.com> +Date: Wed Nov 17 14:12:14 2010 +0100 + + Fix a potential freeing error in XPath + +diff --git a/xpath.c b/xpath.c +index 81e33f6..1447be5 100644 +--- a/xpath.c ++++ b/xpath.c +@@ -11763,11 +11763,15 @@ xmlXPathCompOpEvalPositionalPredicate(xmlXPathParserContextPtr ctxt, + + if ((ctxt->error != XPATH_EXPRESSION_OK) || (res == -1)) { + xmlXPathObjectPtr tmp; +- /* pop the result */ ++ /* pop the result if any */ + tmp = valuePop(ctxt); +- xmlXPathReleaseObject(xpctxt, tmp); +- /* then pop off contextObj, which will be freed later */ +- valuePop(ctxt); ++ if (tmp != contextObj) ++ /* ++ * Free up the result ++ * then pop off contextObj, which will be freed later ++ */ ++ xmlXPathReleaseObject(xpctxt, tmp); ++ valuePop(ctxt); + goto evaluation_error; + } + |