diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-06 04:27:33 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-06 04:27:33 -0500 |
commit | c48c8a420b98dbee6779508e31edc3886c915961 (patch) | |
tree | 92f92ae079830489cdbca55c9435e617e00e128b /user/itstool/fix-segfault.patch | |
parent | 5d6de91b9f8c81199a37610d97f5b33f2b18cb6d (diff) | |
download | packages-c48c8a420b98dbee6779508e31edc3886c915961.tar.gz packages-c48c8a420b98dbee6779508e31edc3886c915961.tar.bz2 packages-c48c8a420b98dbee6779508e31edc3886c915961.tar.xz packages-c48c8a420b98dbee6779508e31edc3886c915961.zip |
user/itstool: pull in, take, fix
Diffstat (limited to 'user/itstool/fix-segfault.patch')
-rw-r--r-- | user/itstool/fix-segfault.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/user/itstool/fix-segfault.patch b/user/itstool/fix-segfault.patch new file mode 100644 index 000000000..047b691b7 --- /dev/null +++ b/user/itstool/fix-segfault.patch @@ -0,0 +1,25 @@ +From 1549b6d12eb2f35e5c7f1b1856c21768e92ba794 Mon Sep 17 00:00:00 2001 +From: Guido Trentalancia <guido@trentalancia.com> +Date: Wed, 1 Nov 2017 18:23:44 +0100 +Subject: [PATCH] Fix a segmentation fault bug introduced with version 2.0.4. + +https://github.com/itstool/itstool/issues/17 + +This fix seems a lot easier than the previous reverted commit. +--- + itstool.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/itstool.in b/itstool.in +index c1d0585..e492e95 100755 +--- a/itstool.in ++++ b/itstool.in +@@ -1048,7 +1048,7 @@ class Document (object): + else: + ctxt.replaceEntities(1) + ctxt.parseDocument() +- trnode = ctxt.doc().getRootElement() ++ trnode = ctxt.doc().getRootElement().copyNode(1) + try: + self._check_errors() + except libxml2.parserError: |