itstool: add patch to fix segfault
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
6611728854
commit
ef7dba8d2c
2 changed files with 16 additions and 1 deletions
15
srcpkgs/itstool/patches/fix-segfault.patch
Normal file
15
srcpkgs/itstool/patches/fix-segfault.patch
Normal 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:
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue