mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
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'
|
# Template file for 'itstool'
|
||||||
pkgname=itstool
|
pkgname=itstool
|
||||||
version=2.0.6
|
version=2.0.6
|
||||||
revision=1
|
revision=2
|
||||||
archs=noarch
|
archs=noarch
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="PYTHON=/usr/bin/python3"
|
configure_args="PYTHON=/usr/bin/python3"
|
||||||
|
|
Loading…
Add table
Reference in a new issue