[packages/libbeagle] - fix format string error - rel 7
baggins
baggins at pld-linux.org
Sun Mar 5 17:13:50 CET 2017
commit 5b9604205f184278eb6f0e1d580f40ce4771e7f0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Mar 5 17:13:36 2017 +0100
- fix format string error
- rel 7
format-security.patch | 11 +++++++++++
libbeagle.spec | 6 ++++--
2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/libbeagle.spec b/libbeagle.spec
index c35f96e..b22be54 100644
--- a/libbeagle.spec
+++ b/libbeagle.spec
@@ -7,12 +7,13 @@ Summary: Beagle C interface
Summary(pl.UTF-8): Interfejs w C do Beagle
Name: libbeagle
Version: 0.3.9
-Release: 5
+Release: 6
License: MIT
Group: Libraries
Source0: http://ftp.gnome.org/pub/GNOME/sources/libbeagle/0.3/%{name}-%{version}.tar.bz2
# Source0-md5: af1e25bdfb704ee87047bc49a73fbb10
Patch0: %{name}-am.patch
+Patch1: format-security.patch
URL: http://beagle-project.org/
BuildRequires: autoconf
BuildRequires: automake
@@ -107,6 +108,7 @@ Wiązania języka Python dla Beagle.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%{__libtoolize}
@@ -132,7 +134,7 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%if %{with python}
-rm -f $RPM_BUILD_ROOT%{py_sitedir}/beagle/beagle.{a,la}
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/beagle/beagle.{a,la}
%py_postclean
%endif
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..d2e7d78
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- libbeagle-0.3.9/beagle/beagle-request.c~ 2008-07-19 13:24:51.000000000 +0200
++++ libbeagle-0.3.9/beagle/beagle-request.c 2017-03-05 17:12:30.361377197 +0100
+@@ -206,7 +206,7 @@
+
+ bzero (&sun, sizeof (sun));
+ sun.sun_family = AF_UNIX;
+- snprintf (sun.sun_path, sizeof (sun.sun_path), path);
++ snprintf (sun.sun_path, sizeof (sun.sun_path), "%s", path);
+
+ /* We retry on EGAIN or EINTR: since both of these mean the socket is active,
+ * there is no harm in trying to retry a lot of times. A blocking socket would
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libbeagle.git/commitdiff/5b9604205f184278eb6f0e1d580f40ce4771e7f0
More information about the pld-cvs-commit
mailing list