commit 5629b0ed74933f64f3e7bf7fc6f93adece159121
Author: Jan RÄ™korajski <[email protected]>
Date:   Mon Nov 19 00:24:38 2012 +0100

    - fix building with -Wformat-security
    - rel 8

 ghostpcl-format-security.patch | 40 ++++++++++++++++++++++++++++++++++++++++
 ghostpcl.spec                  |  4 +++-
 2 files changed, 43 insertions(+), 1 deletion(-)
---
diff --git a/ghostpcl.spec b/ghostpcl.spec
index 1c955d0..52da382 100644
--- a/ghostpcl.spec
+++ b/ghostpcl.spec
@@ -12,7 +12,7 @@ Summary:      PostScript, PDF and XPS interpreter and renderer
 Summary(pl.UTF-8):     Interpreter i renderer PostScriptu, PDF oraz XPS
 Name:          ghostpcl
 Version:       1.54
-Release:       7
+Release:       8
 License:       GPL v2
 Group:         Applications/Graphics
 #Source0:      
http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/ghostpdl/ghostpdl-%{version}.tar.bz2
@@ -24,6 +24,7 @@ Source1:      
http://www.ctan.org/get/nonfree/support/ghostscript/AFPL/GhostPCL/urwfo
 # Source1-md5: 6d65230fa5e9783a0b5942b55dc5219f
 Patch0:                %{name}-fonts_locations.patch
 Patch1:                %{name}-make.patch
+Patch2:                %{name}-format-security.patch
 URL:           http://www.artifex.com/downloads/
 #BuildRequires:        XFree86-devel
 BuildRequires: expat-devel
@@ -61,6 +62,7 @@ Fonty URW w formacie TTF dla GhostPCL-a.
 %setup -q -n ghostpdl-%{version} -a1
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__make} -j1 \
diff --git a/ghostpcl-format-security.patch b/ghostpcl-format-security.patch
new file mode 100644
index 0000000..fc33b80
--- /dev/null
+++ b/ghostpcl-format-security.patch
@@ -0,0 +1,40 @@
+--- ghostpdl-1.54/pl/plmain.c.orig     2012-11-19 00:05:12.958343465 +0100
++++ ghostpdl-1.54/pl/plmain.c  2012-11-19 00:05:55.211675307 +0100
+@@ -266,7 +266,7 @@
+     /* Create PDL instances, etc */
+     if (pl_main_universe_init(&universe, err_buf, mem, pdl_implementation,
+                             pjl_instance, &inst, &pl_pre_finish_page, 
&pl_post_finish_page) < 0) {
+-      errprintf(err_buf);
++      errprintf("%s", err_buf);
+       return -1;
+     }
+ 
+@@ -384,7 +384,7 @@
+                                                       
pl_select_implementation(pjl_instance, &inst, r),
+                                                       &inst, (gs_param_list 
*)&params);
+               if ( curr_instance == NULL ) {
+-                  dprintf(err_buf);
++                  dputs(err_buf);
+                   return -1;
+               }
+ 
+@@ -447,7 +447,7 @@
+ 
+     /* Dnit PDLs */
+     if (pl_main_universe_dnit(&universe, err_buf)) {
+-      dprintf(err_buf);
++      dputs(err_buf);
+       return -1;
+     }
+     /* dnit pjl */
+--- ghostpdl-1.54/pxl/pxtop.c~ 2008-08-02 23:09:12.000000000 +0200
++++ ghostpdl-1.54/pxl/pxtop.c  2012-11-19 00:18:39.224981686 +0100
+@@ -515,7 +515,7 @@
+          code, st, pxs)) >= 0
+       )
+         { if ( (report & eBackChannel) || force_to_cout )
+-            errprintf(message);
++            errprintf("%s", message);
+           if ( report & eErrorPage )
+             y = px_error_page_show(message, y, pxs);
+         }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghostpcl.git/commitdiff/5629b0ed74933f64f3e7bf7fc6f93adece159121

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to