From 170867606bd5cac4af328d60d8fcf5e9573295f2c6c5cfd2142da81edb9fb771 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 20 Apr 2022 06:42:06 +0000 Subject: [PATCH] Accepting request 970902 from home:dirkmueller:Factory - add libbs2b-security.patch to prevent format-security issues - spec-cleaner fixes OBS-URL: https://build.opensuse.org/request/show/970902 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libbs2b?expand=0&rev=7 --- libbs2b-security.patch | 11 +++++++++++ libbs2b.changes | 6 ++++++ libbs2b.spec | 18 +++++++++--------- 3 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 libbs2b-security.patch diff --git a/libbs2b-security.patch b/libbs2b-security.patch new file mode 100644 index 0000000..78feb6f --- /dev/null +++ b/libbs2b-security.patch @@ -0,0 +1,11 @@ +--- libbs2b-3.1.0/src/bs2bconvert.c.orig 2014-05-20 23:09:11.975876646 +0100 ++++ libbs2b-3.1.0/src/bs2bconvert.c 2014-05-20 23:14:06.047076693 +0100 +@@ -153,7 +153,7 @@ + if( ( infile = sf_open( infilename, SFM_READ, &sfinfo ) ) == NULL ) + { + printf( "Not able to open input file %s.\n", infilename ); +- printf( sf_strerror( NULL ) ); ++ printf( "%s", sf_strerror( NULL ) ); + return 1; + } + diff --git a/libbs2b.changes b/libbs2b.changes index afffaa8..7f9622e 100644 --- a/libbs2b.changes +++ b/libbs2b.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 19 20:34:01 UTC 2022 - Dirk Müller + +- add libbs2b-security.patch to prevent format-security issues +- spec-cleaner fixes + ------------------------------------------------------------------- Thu Aug 18 09:35:10 UTC 2016 - zaitor@opensuse.org diff --git a/libbs2b.spec b/libbs2b.spec index 279bfd0..bf6e0c0 100644 --- a/libbs2b.spec +++ b/libbs2b.spec @@ -1,7 +1,7 @@ # # spec file for package libbs2b # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,24 +12,23 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define soname 0 - Name: libbs2b Version: 3.1.0 Release: 0 Summary: The Bauer stereophonic-to-binaural DSP library License: MIT Group: System/Libraries -Url: http://bs2b..sourceforge.net/ +URL: http://bs2b.sourceforge.net/ Source0: https://downloads.sourceforge.net/project/bs2b/libbs2b/%{version}/libbs2b-%{version}.tar.bz2 +Patch0: libbs2b-security.patch Source99: baselibs.conf -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gcc-c++ -BuildRequires: pkg-config +BuildRequires: pkgconfig BuildRequires: pkgconfig(sndfile) %description @@ -66,22 +65,23 @@ DSP. %prep %setup -q +%patch -p1 %build %configure --disable-static -make %{?_smp_mflags} +%make_build %install %make_install rm -f '%{buildroot}%{_libdir}/libbs2b.la' %post -n libbs2b%{soname} -p /sbin/ldconfig - %postun -n libbs2b%{soname} -p /sbin/ldconfig %files -n libbs2b%{soname} %defattr(0644, root, root, 0755) -%doc AUTHORS ChangeLog COPYING README +%license COPYING +%doc AUTHORS ChangeLog README %{_libdir}/libbs2b.so.%{soname}* %files -n libbs2b-devel