summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/libvorbis/libvorbis/CVE-2017-14160.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-multimedia/libvorbis/libvorbis/CVE-2017-14160.patch')
-rw-r--r--meta/recipes-multimedia/libvorbis/libvorbis/CVE-2017-14160.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/libvorbis/libvorbis/CVE-2017-14160.patch b/meta/recipes-multimedia/libvorbis/libvorbis/CVE-2017-14160.patch
new file mode 100644
index 0000000000..7564d92879
--- /dev/null
+++ b/meta/recipes-multimedia/libvorbis/libvorbis/CVE-2017-14160.patch
@@ -0,0 +1,33 @@
1From 018ca26dece618457dd13585cad52941193c4a25 Mon Sep 17 00:00:00 2001
2From: Thomas Daede <daede003@umn.edu>
3Date: Wed, 9 May 2018 14:56:59 -0700
4Subject: [PATCH] CVE-2017-14160: fix bounds check on very low sample rates.
5
6CVE: CVE-2017-14160
7CVE: CVE-2018-10393
8Upstream-Status: Backport from https://gitlab.xiph.org/xiph/vorbis/commit/018ca26dece618457dd13585cad52941193c4a25
9
10Signed-off-by: Thomas Daede <daede003@umn.edu>
11Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
12---
13 lib/psy.c | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16diff --git a/lib/psy.c b/lib/psy.c
17index 422c6f1..1310123 100644
18--- a/lib/psy.c
19+++ b/lib/psy.c
20@@ -602,8 +602,9 @@ static void bark_noise_hybridmp(int n,const long *b,
21 for (i = 0, x = 0.f;; i++, x += 1.f) {
22
23 lo = b[i] >> 16;
24- if( lo>=0 ) break;
25 hi = b[i] & 0xffff;
26+ if( lo>=0 ) break;
27+ if( hi>=n ) break;
28
29 tN = N[hi] + N[-lo];
30 tX = X[hi] - X[-lo];
31--
322.7.4
33