meta-openembedded/meta-oe/recipes-multimedia/audiofile/audiofile_0.3.6.bb
Gyorgy Sarvari 6c98db2449
audiofile: backport test for CVE-2015-7747
This is a backported patch from opensuse, which contains a testcase
for CVE-2015-7747 (which is already patched in ths recipe, but not
tested explicitly).

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-14 07:36:56 -08:00

53 lines
1.9 KiB
BlitzBasic

DESCRIPTION = "The Audio File Library provides a uniform and elegant \
API for accessing a variety of audio file formats, such as AIFF/AIFF-C, \
WAVE, NeXT/Sun .snd/.au, Berkeley/IRCAM/CARL Sound File, Audio Visual \
Research, Amiga IFF/8SVX, and NIST SPHERE."
HOMEPAGE = "http://www.68k.org/~michael/audiofile/"
SECTION = "libs"
LICENSE = "LGPL-2.0-only & GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRC_URI = " \
${GNOME_MIRROR}/audiofile/0.3/${BP}.tar.xz \
file://run-ptest \
file://0001-fix-negative-shift-constants.patch \
file://0002-fix-build-on-gcc6.patch \
file://0003-fix-CVE-2015-7747.patch \
file://0004-Always-check-the-number-of-coefficients.patch \
file://0005-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch \
file://0006-Check-for-multiplication-overflow-in-sfconvert.patch \
file://0007-Actually-fail-when-error-occurs-in-parseFormat.patch \
file://0008-Check-for-multiplication-overflow-in-MSADPCM-decodeS.patch \
file://test-for-CVE-2015-7747.patch \
file://CVE-2019-13147.patch \
file://CVE-2022-24599.patch \
"
SRC_URI[sha256sum] = "ea2449ad3f201ec590d811db9da6d02ffc5e87a677d06b92ab15363d8cb59782"
inherit autotools lib_package pkgconfig ptest
CXXFLAGS += "-std=c++14"
DEPENDS = " \
asciidoc-native \
alsa-lib \
libogg \
flac \
"
do_compile_ptest(){
oe_runmake -C gtest libgtest.la
cd test
# Query the TESTS variable value, remove the $(...) parts from it,
# compile as make target along with FLAC (which is an optional test)
oe_runmake `make -p | grep "^TESTS = " | sed 's/$([^)]*)//g' | cut -d= -f2` FLAC
}
do_install_ptest(){
install -d ${D}${PTEST_PATH}/test
for t in test/.libs/*; do
install $t ${D}${PTEST_PATH}/test/
done
}