[packages/gtkglarea] - fix format string errors - rel 4
baggins
baggins at pld-linux.org
Mon Apr 6 13:11:08 CEST 2015
commit fb2c717fc644e6e6abb307574332698cccf3b1f5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Apr 6 11:10:52 2015 +0000
- fix format string errors
- rel 4
format-security.patch | 22 ++++++++++++++++++++++
gtkglarea.spec | 6 ++++--
2 files changed, 26 insertions(+), 2 deletions(-)
---
diff --git a/gtkglarea.spec b/gtkglarea.spec
index bbabe04..f4e8bf8 100644
--- a/gtkglarea.spec
+++ b/gtkglarea.spec
@@ -6,11 +6,12 @@ Summary(uk.UTF-8): GtkGLArea - це OpenGL віджет для GTK+
Summary(wa.UTF-8): GtkGLArea est on ahesse pol toolkit grafike GTK+
Name: gtkglarea
Version: 2.0.1
-Release: 3
+Release: 4
License: LGPL v2+
Group: X11/Libraries
Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkglarea/2.0/%{name}-%{version}.tar.bz2
# Source0-md5: 19af1b2185555b3bb28eef8bbaa36067
+Patch0: format-security.patch
# libGLU for examples only
BuildRequires: OpenGL-GLU-devel
BuildRequires: autoconf
@@ -21,7 +22,7 @@ BuildRequires: pkgconfig
Obsoletes: libgtkglarea5
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _noautoreqdep libGL.so.1 libGLU.so.1
+%define _noautoreqdep libGL.so.1 libGLU.so.1
%description
Just as GTK+ is build on top of GDK, GtkGLArea is built on top of
@@ -102,6 +103,7 @@ biblioteca GtkGLArea.
%prep
%setup -q
+%patch0 -p1
%build
%{__libtoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..9b4ed49
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,22 @@
+--- gtkglarea-2.0.1/examples/simple.c~ 2009-07-17 21:29:39.000000000 +0000
++++ gtkglarea-2.0.1/examples/simple.c 2015-04-06 11:08:22.534158463 +0000
+@@ -157,7 +157,7 @@
+
+ /* vendor dependent version info string */
+ info_str = gdk_gl_get_info();
+- g_print(info_str);
++ g_print("%s", info_str);
+ g_free(info_str);
+
+ gtk_main();
+--- gtkglarea-2.0.1/examples/shaders.c~ 2009-07-17 21:29:39.000000000 +0000
++++ gtkglarea-2.0.1/examples/shaders.c 2015-04-06 11:08:57.717493647 +0000
+@@ -149,7 +149,7 @@
+ glGetShaderiv(shader_id, GL_INFO_LOG_LENGTH, &infologLength);
+ infoLog = malloc(sizeof(GLchar) * infologLength);
+ glGetShaderInfoLog(shader_id, infologLength, &charsWritten, infoLog);
+- g_print(infoLog);
++ g_print("%s",infoLog);
+ free(infoLog);
+ }
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gtkglarea.git/commitdiff/fb2c717fc644e6e6abb307574332698cccf3b1f5
More information about the pld-cvs-commit
mailing list