mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-08 02:09:48 +03:00
- Switch to github to get latest version
- Drop patches (already in version)
- Fix CVE-2018-19840: The function WavpackPackInit in pack_utils.c in
libwavpack.a in WavPack through 5.1.0 allows attackers to cause a
denial-of-service (resource exhaustion caused by an infinite loop) via
a crafted wav audio file because WavpackSetConfiguration64 mishandles
a sample rate of zero.
- Fix CVE-2018-19841: The function WavpackVerifySingleBlock in
open_utils.c in libwavpack.a in WavPack through 5.1.0 allows attackers
to cause a denial-of-service (out-of-bounds read and application
crash) via a crafted WavPack Lossless Audio file, as demonstrated by
wvunpack.
- Add hash for license file
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 7a24c6d63b)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
31 lines
1022 B
Makefile
31 lines
1022 B
Makefile
################################################################################
|
|
#
|
|
# wavpack
|
|
#
|
|
################################################################################
|
|
|
|
WAVPACK_VERSION = 5.2.0
|
|
WAVPACK_SITE = \
|
|
https://github.com/dbry/WavPack/releases/download/$(WAVPACK_VERSION)
|
|
WAVPACK_SOURCE = wavpack-$(WAVPACK_VERSION).tar.xz
|
|
WAVPACK_INSTALL_STAGING = YES
|
|
WAVPACK_DEPENDENCIES = $(if $(BR2_ENABLE_LOCALE),,libiconv)
|
|
WAVPACK_LICENSE = BSD-3-Clause
|
|
WAVPACK_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
WAVPACK_CONF_OPTS += LIBS=-liconv
|
|
endif
|
|
|
|
# WavPack "autodetects" CPU type to enable ASM code. However, the assembly code
|
|
# for ARM is written for ARMv7 only and building WavPack for an ARM-non-v7
|
|
# architecture will fail. We explicitly enable ASM for the supported
|
|
# architectures x86, x64 and ARMv7 and disable it for all others.
|
|
ifeq ($(BR2_i386)$(BR2_x86_64)$(BR2_ARM_CPU_ARMV7A),y)
|
|
WAVPACK_CONF_OPTS += --enable-asm
|
|
else
|
|
WAVPACK_CONF_OPTS += --disable-asm
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|