package/audiofile: drop package
PATCH 1/1 package/audiofile: drop package
The audiofile package is affected by multiple CVEs and is not maintained anymore (no release since 2013):
Signed-off-by Fabrice Fontaine <[email protected]>
--- Config.in.legacy | 16 ++ package/Config.in | 1 - ...01-Fix-pkg-config-for-static-linking.patch | 56 ----- .../0002-cast-to-unsigned-gcc6.patch | 28 --- ...ays-check-the-number-of-coefficients.patch | 36 ---- ...ues-to-fix-index-overflow-in-IMA.cpp.patch | 39 ---- ...multiplication-overflow-in-sfconvert.patch | 72 ------- ...ail-when-error-occurs-in-parseFormat.patch | 42 ---- ...lication-overflow-in-MSADPCM-decodeS.patch | 122 ----------- package/audiofile/0008-CVE-2015-7747.patch | 161 --------------- ...9-Fix-static-linking-with-libsndfile.patch | 193 ------------------ package/audiofile/Config.in | 11 - package/audiofile/audiofile.hash | 4 - package/audiofile/audiofile.mk | 41 ---- package/mpd/Config.in | 7 - package/mpd/mpd.mk | 11 +- 16 files changed, 19 insertions(+), 821 deletions(-) delete mode 100644 package/audiofile/0001-Fix-pkg-config-for-static-linking.patch delete mode 100644 package/audiofile/0002-cast-to-unsigned-gcc6.patch delete mode 100644 package/audiofile/0003-Always-check-the-number-of-coefficients.patch delete mode 100644 package/audiofile/0004-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch delete mode 100644 package/audiofile/0005-Check-for-multiplication-overflow-in-sfconvert.patch delete mode 100644 package/audiofile/0006-Actually-fail-when-error-occurs-in-parseFormat.patch delete mode 100644 package/audiofile/0007-Check-for-multiplication-overflow-in-MSADPCM-decodeS.patch delete mode 100644 package/audiofile/0008-CVE-2015-7747.patch delete mode 100644 package/audiofile/0009-Fix-static-linking-with-libsndfile.patch delete mode 100644 package/audiofile/Config.in delete mode 100644 package/audiofile/audiofile.hash delete mode 100644 package/audiofile/audiofile.mk
Config.in.legacy +16 -0
@@ -146,6 +146,22 @@ endif comment "Legacy options removed in 2021.02" +config BR2_PACKAGE_MPD_AUDIOFILE + bool "mpd audiofile support removed" + select BR2_LEGACY + help + The audiofile support was removed from mpd as audiofile is + affected by multiple CVEs and is not maintained anymore (no + release since 2013). + +config BR2_PACKAGE_AUDIOFILE + bool "audiofile package removed" + select BR2_LEGACY + help + The audiofile package was removed as it is affected by + multiple CVEs and is not maintained anymore (no release since + 2013). + config BR2_BINUTILS_VERSION_2_33_X bool "binutils 2.33.x has been removed" select BR2_LEGACY
package/Config.in +0 -1
@@ -1281,7 +1281,6 @@ menu "Audio/Sound" source "package/alsa-lib/Config.in" source "package/alure/Config.in" source "package/aubio/Config.in" - source "package/audiofile/Config.in" source "package/bcg729/Config.in" source "package/caps/Config.in" source "package/fdk-aac/Config.in"
package/audiofile/0001-Fix-pkg-config-for-static-linking.patch deleted +0 -56
56 lines not on this page · raw message
package/audiofile/0002-cast-to-unsigned-gcc6.patch deleted +0 -28
@@ -1,28 +0,0 @@ -From 28cfdbbcb96a69087c3d21faf69b5eae7bcf6d69 Mon Sep 17 00:00:00 2001 -From: Hodorgasm <[email protected]> -Date: Wed, 11 May 2016 21:42:07 -0400 -Subject: [PATCH] Cast to unsigned while left bit-shifting - -GCC-6 now treats the left bitwise-shift of a negative integer as nonconformant so explicitly cast to an unsigned int while bit-shifting. - -Downloaded from upstream PR: -https://github.com/mpruett/audiofile/pull/28 - -Signed-off-by: Bernd Kuhls <[email protected]> ---- - libaudiofile/modules/SimpleModule.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/libaudiofile/modules/SimpleModule.h b/libaudiofile/modules/SimpleModule.h -index 03c6c69..4014fb2 100644 ---- a/libaudiofile/modules/SimpleModule.h -+++ b/libaudiofile/modules/SimpleModule.h -@@ -123,7 +123,7 @@ struct signConverter - typedef typename IntTypes<Format>::UnsignedType UnsignedType; - - static const int kScaleBits = (Format + 1) * CHAR_BIT - 1; -- static const int kMinSignedValue = -1 << kScaleBits; -+ static const int kMinSignedValue = static_cast<signed>(static_cast<unsigned>(-1) << kScaleBits);; - - struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType> - {
package/audiofile/0003-Always-check-the-number-of-coefficients.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From c48e4c6503f7dabd41f11d4c9c7b7f8960e7f2c0 Mon Sep 17 00:00:00 2001 -From: Antonio Larrosa <[email protected]> -Date: Mon, 6 Mar 2017 12:51:22 +0100 -Subject: [PATCH] Always check the number of coefficients - -When building the library with NDEBUG, asserts are eliminated -so it's better to always check that the number of coefficients -is inside the array range. - -This fixes the 00191-audiofile-indexoob issue in #41 - -Signed-off-by: Peter Korsgaard <[email protected]> ---- - libaudiofile/WAVE.cpp | 6 ++++++ - 1 file changed, 6 insertions(+) - -diff --git a/libaudiofile/WAVE.cpp b/libaudiofile/WAVE.cpp -index 0e81cf7..61f9541 100644 ---- a/libaudiofile/WAVE.cpp -+++ b/libaudiofile/WAVE.cpp -@@ -281,6 +281,12 @@ status WAVEFile::parseFormat(const Tag &id, uint32_t size) - - /* numCoefficients should be at least 7. */ - assert(numCoefficients >= 7 && numCoefficients <= 255); -+ if (numCoefficients < 7 || numCoefficients > 255) -+ { -+ _af_error(AF_BAD_HEADER, -+ "Bad number of coefficients"); -+ return AF_FAIL; -+ } - - m_msadpcmNumCoefficients = numCoefficients; - --- -2.11.0 -
package/audiofile/0004-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch deleted +0 -39
@@ -1,39 +0,0 @@ -From 25eb00ce913452c2e614548d7df93070bf0d066f Mon Sep 17 00:00:00 2001 -From: Antonio Larrosa <[email protected]> -Date: Mon, 6 Mar 2017 18:02:31 +0100 -Subject: [PATCH] clamp index values to fix index overflow in IMA.cpp - -This fixes #33 -(also reported at https://bugzilla.opensuse.org/show_bug.cgi?id=1026981 -and https://blogs.gentoo.org/ago/2017/02/20/audiofile-global-buffer-overflow-in-decodesample-ima-cpp/) - -Signed-off-by: Peter Korsgaard <[email protected]> ---- - libaudiofile/modules/IMA.cpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/libaudiofile/modules/IMA.cpp b/libaudiofile/modules/IMA.cpp -index 7476d44..df4aad6 100644 ---- a/libaudiofile/modules/IMA.cpp -+++ b/libaudiofile/modules/IMA.cpp -@@ -169,7 +169,7 @@ int IMA::decodeBlockWAVE(const uint8_t *encoded, int16_t *decoded) - if (encoded[1] & 0x80) - m_adpcmState[c].previousValue -= 0x10000; - -- m_adpcmState[c].index = encoded[2]; -+ m_adpcmState[c].index = clamp(encoded[2], 0, 88); - - *decoded++ = m_adpcmState[c].previousValue; - -@@ -210,7 +210,7 @@ int IMA::decodeBlockQT(const uint8_t *encoded, int16_t *decoded) - predictor -= 0x10000; - - state.previousValue = clamp(predictor, MIN_INT16, MAX_INT16); -- state.index = encoded[1] & 0x7f; -+ state.index = clamp(encoded[1] & 0x7f, 0, 88); - encoded += 2; - - for (int n=0; n<m_framesPerPacket; n+=2) --- -2.11.0 -
package/audiofile/0005-Check-for-multiplication-overflow-in-sfconvert.patch deleted +0 -72
72 lines not on this page · raw message
package/audiofile/0006-Actually-fail-when-error-occurs-in-parseFormat.patch deleted +0 -42
42 lines not on this page · raw message
package/audiofile/0007-Check-for-multiplication-overflow-in-MSADPCM-decodeS.patch deleted +0 -122
122 lines not on this page · raw message
package/audiofile/0008-CVE-2015-7747.patch deleted +0 -161
161 lines not on this page · raw message
package/audiofile/0009-Fix-static-linking-with-libsndfile.patch deleted +0 -193
193 lines not on this page · raw message
package/audiofile/Config.in deleted +0 -11
@@ -1,11 +0,0 @@ -config BR2_PACKAGE_AUDIOFILE - bool "audiofile" - depends on BR2_INSTALL_LIBSTDCPP - help - The Audio File Library handles reading and writing audio files - in many common formats. - - http://www.68k.org/~michael/audiofile/ - -comment "audiofile needs a toolchain w/ C++" - depends on !BR2_INSTALL_LIBSTDCPP
package/audiofile/audiofile.hash deleted +0 -4
@@ -1,4 +0,0 @@ -# Locally calculated -sha256 cdc60df19ab08bfe55344395739bb08f50fc15c92da3962fac334d3bff116965 audiofile-0.3.6.tar.gz -sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING -sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING.GPL
package/audiofile/audiofile.mk deleted +0 -41
41 lines not on this page · raw message
package/mpd/Config.in +0 -7
@@ -84,13 +84,6 @@ config BR2_PACKAGE_MPD_LIBSOXR comment "Decoder plugins" -config BR2_PACKAGE_MPD_AUDIOFILE - bool "audiofile" - select BR2_PACKAGE_AUDIOFILE - help - Enable audiofile input/streaming support. - Select this if you want to play back WAV files. - config BR2_PACKAGE_MPD_DSD bool "dsd" help
package/mpd/mpd.mk +3 -8
@@ -11,7 +11,9 @@ MPD_SITE = http://www.musicpd.org/download/mpd/$(MPD_VERSION_MAJOR) MPD_DEPENDENCIES = host-pkgconf boost MPD_LICENSE = GPL-2.0+ MPD_LICENSE_FILES = COPYING -MPD_CONF_OPTS = -Ddocumentation=disabled +MPD_CONF_OPTS = \ + -Daudiofile=disabled \ + -Ddocumentation=disabled # Zeroconf support depends on libdns_sd from avahi. ifeq ($(BR2_PACKAGE_MPD_AVAHI_SUPPORT),y)
@@ -43,13 +45,6 @@ else MPD_CONF_OPTS += -Dao=disabled endif -ifeq ($(BR2_PACKAGE_MPD_AUDIOFILE),y) -MPD_DEPENDENCIES += audiofile -MPD_CONF_OPTS += -Daudiofile=enabled -else -MPD_CONF_OPTS += -Daudiofile=disabled -endif - ifeq ($(BR2_PACKAGE_MPD_BZIP2),y) MPD_DEPENDENCIES += bzip2 MPD_CONF_OPTS += -Dbzip2=enabled
Signature · 1 line
2.29.2
PATCH 1/1 package/audiofile: drop package
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
The audiofile package is affected by multiple CVEs and is not maintained anymore (no release since 2013):
Signed-off-by Fabrice Fontaine <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard