commit c2b09b430b787326eab9edb4c0bdcca5c4cbc588
Author: Paul Howarth <paul(a)city-fan.org>
Date: Sun Jun 18 12:40:30 2017 +0100
Add patch to work around false positive in format-security check
pdflib-lite-7.0.5-format-security.patch | 11 +++++++++++
pdflib-lite.spec | 3 +++
2 files changed, 14 insertions(+)
---
diff --git a/pdflib-lite-7.0.5-format-security.patch
b/pdflib-lite-7.0.5-format-security.patch
new file mode 100644
index 0000000..4c3e6ae
--- /dev/null
+++ b/pdflib-lite-7.0.5-format-security.patch
@@ -0,0 +1,11 @@
+--- bind/pdflib/perl/pdflib_pl.c
++++ bind/pdflib/perl/pdflib_pl.c
+@@ -375,7 +375,7 @@ SWIGEXPORT(void,boot_pdflib_pl)(CV *cv,
+ #include "pdflib.h"
+
+ /* Exception handling */
+-#define SWIG_exception(msg) croak(msg)
++#define SWIG_exception(msg) croak("%s", msg)
+ #define try PDF_TRY(p)
+ #define catch PDF_CATCH(p) { \
+ char errmsg[1024];\
diff --git a/pdflib-lite.spec b/pdflib-lite.spec
index 0c62473..ddd2f12 100644
--- a/pdflib-lite.spec
+++ b/pdflib-lite.spec
@@ -13,6 +13,7 @@ URL:
http://www.pdflib.com/
Source:
http://www.pdflib.com/binaries/PDFlib/705/PDFlib-Lite-%{version}.tar.gz
Patch0: pdflib-lite-7.0.4-gcc43.patch
+Patch1: pdflib-lite-7.0.5-format-security.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -78,6 +79,7 @@ that will use the PDFlib library.
%prep
%setup -q -n PDFlib-Lite-%{version}
%patch0 -p0 -b .gcc43
+%patch1 -b .format-security
sed -i -e 's,^PYTHONLIBDIR.*,PYTHONLIBDIR = %{python_sitearch},' \
-e 's,^PERLLIBDIR.*,PERLLIBDIR = %{perl_vendorarch},' \
@@ -191,6 +193,7 @@ rm -rf %{buildroot}
%changelog
* Sun Jun 18 2017 Paul Howarth <paul(a)city-fan.org> - 7.0.5-11
- Perl 5.26 rebuild
+- Add patch to work around false positive in format-security check
* Sun Mar 26 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> -
7.0.5-10
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild