[zint] fixed BZ #1174324

Martin Gieseking mgieseki at fedoraproject.org
Thu Dec 18 11:16:16 UTC 2014


commit 4441b8b40e59d4b861c40cbd6768017801b9f386
Author: Martin Gieseking <martin.gieseking at uos.de>
Date:   Thu Dec 18 12:15:54 2014 +0100

    fixed BZ #1174324

 zint-kix-leak.patch |   12 ++++++++++++
 zint.spec           |    8 +++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/zint-kix-leak.patch b/zint-kix-leak.patch
new file mode 100644
index 0000000..8e91ac9
--- /dev/null
+++ b/zint-kix-leak.patch
@@ -0,0 +1,12 @@
+diff --git a/backend/postal.c b/backend/postal.c
+--- a/backend/postal.c
++++ b/backend/postal.c
+@@ -363,7 +363,7 @@
+ 	/* Handles Dutch Post TNT KIX symbols */
+ 	/* The same as RM4SCC but without check digit */
+ 	/* Specification at http://www.tntpost.nl/zakelijk/klantenservice/downloads/kIX_code/download.aspx */
+-	char height_pattern[50], localstr[20];
++	char height_pattern[256], localstr[20];
+ 	unsigned int loopey;
+ 	int writer, i, h;
+ 	int error_number; /* zeroes; */
diff --git a/zint.spec b/zint.spec
index f4c070e..99e2b4d 100644
--- a/zint.spec
+++ b/zint.spec
@@ -1,6 +1,6 @@
 Name:      zint
 Version:   2.4.3
-Release:   8%{?dist}
+Release:   9%{?dist}
 Summary:   Barcode generator library
 License:   GPLv3+
 URL:       http://www.zint.org.uk
@@ -10,6 +10,8 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 # patch to disable creation of rpaths
 Patch0:    %{name}-rpath.patch
+# fix https://bugzilla.redhat.com/show_bug.cgi?id=1174324
+Patch1:    %{name}-kix-leak.patch
 
 BuildRequires: cmake
 BuildRequires: libpng-devel
@@ -67,6 +69,7 @@ C library and header files needed to develop applications that use libQZint.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 # remove BSD-licensed file required for Windows only (just to ensure that this package is plain GPLv3+)
 rm -f backend/ms_stdint.h
@@ -125,6 +128,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Thu Dec 18 2014 Martin Gieseking <martin.gieseking at uos.de> 2.4.3-9
+- Fixed https://bugzilla.redhat.com/show_bug.cgi?id=1174324
+
 * Mon Aug 18 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.4.3-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list