[packages/perl-Audio] - fix format string error - rel 6

baggins baggins at pld-linux.org
Thu Jun 13 16:43:01 CEST 2013


commit 3e6861ebb776904873e1357538458dc17379885d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Jun 13 16:42:51 2013 +0200

    - fix format string error
    - rel 6

 format-security.patch | 11 +++++++++++
 perl-Audio.spec       |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/perl-Audio.spec b/perl-Audio.spec
index ea9e1ae..a71e769 100644
--- a/perl-Audio.spec
+++ b/perl-Audio.spec
@@ -8,13 +8,14 @@ Summary:	Audio Perl module - beginnings of Audio manipulation routines from Perl
 Summary(pl.UTF-8):	Moduł Perla Audio - początki funkcji do obróbki dźwięku w Perlu
 Name:		perl-Audio
 Version:	1.029
-Release:	5
+Release:	6
 License:	GPL v2+
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
 # Source0-md5:	58b67ade294b960f617d9ccc495f07f1
 Patch0:		%{name}-nas-fix.patch
 Patch1:		%{name}-perl_version.patch
+Patch2:		format-security.patch
 BuildRequires:	alsa-lib-devel >= 0.9.0
 BuildRequires:	nas-devel
 BuildRequires:	perl-devel >= 1:5.8.0
@@ -73,6 +74,7 @@ Moduł Perla Audio - pliki nagłówkowe.
 %setup -q -n %{pdir}-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..9e16b6d
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- Audio-1.029/Play/config/alsa.xs~	2004-01-06 09:14:19.000000000 +0100
++++ Audio-1.029/Play/config/alsa.xs	2013-06-13 16:42:21.839014538 +0200
+@@ -164,7 +164,7 @@
+        int err = snd_pcm_drain(dev->pcm);
+        if (err < 0)
+         {
+-         warn(snd_strerror(err));
++         warn("%s", snd_strerror(err));
+         }
+         break;
+       }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Audio.git/commitdiff/3e6861ebb776904873e1357538458dc17379885d



More information about the pld-cvs-commit mailing list