diff options
author | Marius Bakke <marius@gnu.org> | 2021-07-19 14:11:12 +0200 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2021-07-23 17:26:46 +0200 |
commit | abe5ffbbfec5fc7f1cb2e1ebe93a7c17df4b176c (patch) | |
tree | 7b53201cc4054bb3f3dade9151dd4dca9a426e61 /gnu/packages/patches/libxml2-xpath-recursion-limit.patch | |
parent | 11fb5f45a847f44833d56c7a733c411edc2d3a37 (diff) | |
download | guix-abe5ffbbfec5fc7f1cb2e1ebe93a7c17df4b176c.tar.gz |
gnu: libxml2: Update to 2.9.12.
* gnu/packages/patches/libxml2-parent-pointers.patch, gnu/packages/patches/libxml2-terminating-newline.patch, gnu/packages/patches/libxml2-xpath-recursion-limit.patch: New files. * gnu/packages/patches/python-libxml2-python39-compat.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/xml.scm (libxml2): Update to 2.9.12. (python-lxml)[source](modules, snippet): New fields.
Diffstat (limited to 'gnu/packages/patches/libxml2-xpath-recursion-limit.patch')
-rw-r--r-- | gnu/packages/patches/libxml2-xpath-recursion-limit.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/patches/libxml2-xpath-recursion-limit.patch b/gnu/packages/patches/libxml2-xpath-recursion-limit.patch new file mode 100644 index 0000000000..051196c635 --- /dev/null +++ b/gnu/packages/patches/libxml2-xpath-recursion-limit.patch @@ -0,0 +1,20 @@ +Fix recursion accounting in XPath expressions: + + https://gitlab.gnome.org/GNOME/libxml2/-/issues/264 + +Taken from upstream: + + https://gitlab.gnome.org/GNOME/libxml2/-/commit/3e1aad4fe584747fd7d17cc7b2863a78e2d21a77 + +diff --git a/xpath.c b/xpath.c +--- a/xpath.c ++++ b/xpath.c +@@ -10983,7 +10983,7 @@ xmlXPathCompileExpr(xmlXPathParserContextPtr ctxt, int sort) { + } + + if (xpctxt != NULL) +- xpctxt->depth -= 1; ++ xpctxt->depth -= 10; + } + + /** |