summaryrefslogtreecommitdiffstats
path: root/pdflib-lite-7.0.5-format-security.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-08-22 15:54:20 +0200
committerRemi Collet <remi@remirepo.net>2018-08-22 15:54:20 +0200
commita90c077a0eafafe9851a4c641012131438087b2d (patch)
treecfb2758300f0c5d3d29c28c1af479a5c99427949 /pdflib-lite-7.0.5-format-security.patch
parenta5ef6c0b12bcd47ed7f045109e498025b7077c20 (diff)
Add patch to work around false positive in format-security check (From rpmfusion, by Paul Howarth )
Diffstat (limited to 'pdflib-lite-7.0.5-format-security.patch')
-rw-r--r--pdflib-lite-7.0.5-format-security.patch11
1 files changed, 11 insertions, 0 deletions
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];\