commit 40a97d711f0abc73325ec7e899cc92dac9ca9a2e
Author: Jan Rękorajski <[email protected]>
Date:   Sun Jul 14 19:57:17 2013 +0200

    - fix format string errors
    - rel 8

 format-security.patch | 40 ++++++++++++++++++++++++++++++++++++++++
 pcb.spec              |  4 +++-
 2 files changed, 43 insertions(+), 1 deletion(-)
---
diff --git a/pcb.spec b/pcb.spec
index a39b125..6d90b1a 100644
--- a/pcb.spec
+++ b/pcb.spec
@@ -2,13 +2,14 @@ Summary:      Printed Circuit Board design tool
 Summary(pl.UTF-8):     PCB - narzędzie do projektowania płytek drukowanych
 Name:          pcb
 Version:       20080202
-Release:       7
+Release:       8
 License:       GPL
 Group:         X11/Applications
 # devel snaps: http://dl.sourceforge.net/pcb/
 Source0:       http://dl.sourceforge.net/pcb/%{name}-%{version}.tar.gz
 # Source0-md5: 933eda642f3838b24d417224693f8386
 #Source0:      ftp://ftp.uni-ulm.de/pub/pcb/mirror/%{name}-%{version}.tar.gz
+Patch0:                format-security.patch
 URL:           http://pcb.sourceforge.net/
 BuildRequires: bison
 BuildRequires: flex
@@ -32,6 +33,7 @@ płytek drukowanych.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export LDFLAGS="-L%{_x_libraries}"
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..2bfffa5
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,40 @@
+--- pcb-20080202/src/hid/gtk/gui-dialog.c.orig 2013-07-14 19:53:48.220483817 
+0200
++++ pcb-20080202/src/hid/gtk/gui-dialog.c      2013-07-14 19:54:17.860775619 
+0200
+@@ -97,7 +97,7 @@
+                                  | GTK_DIALOG_DESTROY_WITH_PARENT,
+                                  GTK_MESSAGE_INFO,
+                                  GTK_BUTTONS_OK,
+-                                 GetInfoString ()
++                                 "%s", GetInfoString ()
+                                  );
+ 
+   gtk_dialog_run (GTK_DIALOG (dialog));
+@@ -142,7 +142,7 @@
+                                  GTK_DIALOG_MODAL |
+                                  GTK_DIALOG_DESTROY_WITH_PARENT,
+                                  GTK_MESSAGE_WARNING, GTK_BUTTONS_OK,
+-                                 message);
++                                 "%s", message);
+ 
+   gtk_dialog_run (GTK_DIALOG (dialog));
+   gtk_widget_destroy (dialog);
+@@ -169,7 +169,7 @@
+                                  GTK_DIALOG_MODAL |
+                                  GTK_DIALOG_DESTROY_WITH_PARENT,
+                                  GTK_MESSAGE_QUESTION,
+-                                 GTK_BUTTONS_NONE, message);
++                                 GTK_BUTTONS_NONE, "%s", message);
+   gtk_dialog_add_buttons (GTK_DIALOG (dialog), 
+                         cancelmsg, GTK_RESPONSE_CANCEL,
+                         okmsg, GTK_RESPONSE_OK,
+--- pcb-20080202/src/hid/gtk/gui-top-window.c.orig     2013-07-14 
19:55:25.204772217 +0200
++++ pcb-20080202/src/hid/gtk/gui-top-window.c  2013-07-14 19:55:48.758337617 
+0200
+@@ -2508,7 +2508,7 @@
+     ghidgui->bg_pixbuf = gdk_pixbuf_new_from_file(bg_image_file, &err);
+   if (err)
+     {
+-    g_error(err->message);
++    g_error("%s", err->message);
+     g_error_free(err);
+     }
+   ghid_build_pcb_top_window ();
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pcb.git/commitdiff/40a97d711f0abc73325ec7e899cc92dac9ca9a2e

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

Reply via email to