itstool: add patch to fix segfault

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-05-13 13:00:11 +02:00
parent 6611728854
commit ef7dba8d2c
No known key found for this signature in database
GPG key ID: DE55AD8DBEBB4EE8
2 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,15 @@
Description: Be more careful about libxml2 memory management
Author: Guido Trentalancia
Origin: https://github.com/itstool/itstool/pull/18
--- itstool.in 2018-11-08 19:11:00.000000000 +0100
+++ itstool.in 2019-05-13 11:02:18.619090267 +0200
@@ -1053,7 +1053,7 @@
else:
ctxt.replaceEntities(1)
ctxt.parseDocument()
- trnode = ctxt.doc().getRootElement()
+ trnode = ctxt.doc().getRootElement().copyNode(1)
try:
self._check_errors()
except libxml2.parserError:

View file

@ -1,7 +1,7 @@
# Template file for 'itstool'
pkgname=itstool
version=2.0.6
revision=1
revision=2
archs=noarch
build_style=gnu-configure
configure_args="PYTHON=/usr/bin/python3"