diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2014-11-25 09:58:06 -0300 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-11-25 14:56:14 +0100 |
commit | 71d3b5c10809703f92ece708558fb9324f6c1336 (patch) | |
tree | e505531765c1eb982f50d9040091769b7cdc40d4 /package/flac/0001-fix-altivec-logic.patch | |
parent | 73d7bc535e5c40d6112ae04e95a44a67810d7bc7 (diff) | |
download | buildroot-71d3b5c10809703f92ece708558fb9324f6c1336.tar.gz buildroot-71d3b5c10809703f92ece708558fb9324f6c1336.zip |
flac: add security patches
Fixes:
CVE-2014-9028 - Heap buffer write overflow
CVE-2014-8962 - Heap buffer read overflow
Patches are upstream part of the upcoming 1.3.1 release.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/flac/0001-fix-altivec-logic.patch')
-rw-r--r-- | package/flac/0001-fix-altivec-logic.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/package/flac/0001-fix-altivec-logic.patch b/package/flac/0001-fix-altivec-logic.patch new file mode 100644 index 0000000000..a1ac8a1fdd --- /dev/null +++ b/package/flac/0001-fix-altivec-logic.patch @@ -0,0 +1,32 @@ +From d65ede3e874c79348efc85cf3a185c170046c4c8 Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias <gustavo@zacarias.com.ar> +Date: Wed, 4 Dec 2013 13:31:28 -0300 +Subject: [PATCH] Fix Makefile.am altivec logic + +Besides SPE (FSL e500v? cores) there are other powerpc processors +that don't support altivec instructions so only enable them when it's +100% sure that the target has it. + +Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> +Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com> +--- + src/libFLAC/Makefile.am | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/libFLAC/Makefile.am b/src/libFLAC/Makefile.am +index 247e33c..258de40 100644 +--- a/src/libFLAC/Makefile.am ++++ b/src/libFLAC/Makefile.am +@@ -47,8 +47,7 @@ CPUCFLAGS = -faltivec -force_cpusubtype_ALL -DFLAC__NO_ASM + else + # Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific + CPUCFLAGS = +-if FLaC__CPU_PPC_SPE +-else ++if FLaC__USE_ALTIVEC + CPUCFLAGS += -maltivec -mabi=altivec + endif + #@@@ PPC optimizations temporarily disabled +-- +1.8.3.2 + |