Accepting request 727839 from multimedia:libs
OBS-URL: https://build.opensuse.org/request/show/727839 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/flac?expand=0&rev=54
This commit is contained in:
commit
5665b9c9bf
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f
|
||||
size 776192
|
3
flac-1.3.3.tar.xz
Normal file
3
flac-1.3.3.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:213e82bd716c9de6db2f98bcadbc4c24c7e2efe8c75939a1a84e28539c4e1748
|
||||
size 1044472
|
@ -1,22 +0,0 @@
|
||||
From 4f47b63e9c971e6391590caf00a0f2a5ed612e67 Mon Sep 17 00:00:00 2001
|
||||
From: Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
Date: Sat, 8 Apr 2017 18:34:49 +1000
|
||||
Subject: [PATCH] stream_decoder.c: Fix a memory leak
|
||||
|
||||
Leak reported by Secunia Research.
|
||||
---
|
||||
src/libFLAC/stream_decoder.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
--- a/src/libFLAC/stream_decoder.c
|
||||
+++ b/src/libFLAC/stream_decoder.c
|
||||
@@ -1759,6 +1759,9 @@ FLAC__bool read_metadata_vorbiscomment_(
|
||||
}
|
||||
memset (obj->comments[i].entry, 0, obj->comments[i].length) ;
|
||||
if (!FLAC__bitreader_read_byte_block_aligned_no_crc(decoder->private_->input, obj->comments[i].entry, obj->comments[i].length)) {
|
||||
+ /* Current i-th entry is bad, so we delete it. */
|
||||
+ free (obj->comments[i].entry) ;
|
||||
+ obj->comments[i].entry = NULL ;
|
||||
obj->num_comments = i;
|
||||
goto skip;
|
||||
}
|
@ -1,26 +1,12 @@
|
||||
Index: flac-1.3.2/configure.ac
|
||||
---
|
||||
configure.ac | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
Index: flac-1.3.3/configure.ac
|
||||
===================================================================
|
||||
--- flac-1.3.2.orig/configure.ac
|
||||
+++ flac-1.3.2/configure.ac
|
||||
@@ -389,8 +389,7 @@ if test "x$debug" = xtrue; then
|
||||
CFLAGS="-g $CFLAGS"
|
||||
else
|
||||
CPPFLAGS="-DNDEBUG $CPPFLAGS"
|
||||
- CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//')
|
||||
- CFLAGS="-O3 -funroll-loops $CFLAGS"
|
||||
+ CFLAGS="$user_cflags"
|
||||
fi
|
||||
|
||||
XIPH_GCC_VERSION
|
||||
@@ -400,7 +399,6 @@ if test x$ac_cv_c_compiler_gnu = xyes ;
|
||||
CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wcast-align -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder -Wsign-promo -Wundef " # -Wcast-qual -Wbad-function-cast -Wwrite-strings -Woverloaded-virtual -Wmissing-declarations
|
||||
|
||||
XIPH_ADD_CFLAGS([-Wdeclaration-after-statement])
|
||||
- XIPH_ADD_CFLAGS([-D_FORTIFY_SOURCE=2])
|
||||
|
||||
AC_LANG_PUSH([C++])
|
||||
XIPH_ADD_CXXFLAGS([-Weffc++])
|
||||
@@ -426,10 +424,6 @@ if test x$ac_cv_c_compiler_gnu = xyes ;
|
||||
--- flac-1.3.3.orig/configure.ac
|
||||
+++ flac-1.3.3/configure.ac
|
||||
@@ -468,10 +468,6 @@ if test x$ac_cv_c_compiler_gnu = xyes ;
|
||||
XIPH_ADD_CFLAGS([-fno-inline-small-functions])
|
||||
fi
|
||||
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 1 06:41:50 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update to release 1.3.3
|
||||
* Improve SIMD decoding of 24 bit files
|
||||
- Drop flac-CVE-2017-6888.patch (merged upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 23 10:15:24 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
@ -473,4 +480,3 @@ Tue May 21 17:39:00 CEST 2002 - tiwai@suse.de
|
||||
Tue May 21 17:02:20 CEST 2002 - tiwai@suse.de
|
||||
|
||||
- initial version: 1.0.2.
|
||||
|
||||
|
16
flac.spec
16
flac.spec
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: flac
|
||||
Version: 1.3.2
|
||||
Version: 1.3.3
|
||||
Release: 0
|
||||
Summary: Free Lossless Audio Codec
|
||||
License: BSD-3-Clause AND GPL-2.0-or-later AND GFDL-1.2-only
|
||||
@ -25,10 +25,10 @@ Group: Productivity/Multimedia/Sound/Utilities
|
||||
URL: https://xiph.org/flac/
|
||||
#Git-Web: https://git.xiph.org/?p=flac.git
|
||||
#Git-Clone: git://git.xiph.org/flac
|
||||
Source: http://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz
|
||||
#Changelog: https://xiph.org/flac/changelog.html
|
||||
Source: https://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz
|
||||
Source2: baselibs.conf
|
||||
Patch0: flac-cflags.patch
|
||||
Patch1: flac-CVE-2017-6888.patch
|
||||
BuildRequires: autoconf >= 2.60
|
||||
BuildRequires: automake >= 1.11
|
||||
BuildRequires: gcc-c++
|
||||
@ -86,9 +86,7 @@ This package contains the files needed to compile programs that use the
|
||||
FLAC library.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
autoreconf -fvi
|
||||
@ -102,7 +100,7 @@ autoreconf -fvi
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%make_install docdir="%{_docdir}/%{name}"
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
# wrongy installed docs
|
||||
rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{version}/
|
||||
@ -116,7 +114,7 @@ make check %{?_smp_mflags}
|
||||
%postun -n libFLAC++6 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%doc AUTHORS README
|
||||
%doc README
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man*/*
|
||||
|
||||
@ -133,5 +131,7 @@ make check %{?_smp_mflags}
|
||||
%{_includedir}/*
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_datadir}/aclocal/*.m4
|
||||
%{_docdir}/%{name}/
|
||||
%exclude %{_docdir}/%{name}/README
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user