summaryrefslogtreecommitdiff
path: root/user/libvorbis/CVE-2017-14160-and-2018-10393.patch
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2019-08-29 13:08:34 -0500
committerMax Rees <maxcrees@me.com>2019-09-17 14:34:11 -0500
commitbfc686181b6c0eaab1750e53c7597518d226941d (patch)
treef733fd2bdf5b22ff83ef0e37d3f10d6395860028 /user/libvorbis/CVE-2017-14160-and-2018-10393.patch
parent162826e7e57fa3f73d6fcf904e3a059286df3476 (diff)
downloadpackages-bfc686181b6c0eaab1750e53c7597518d226941d.tar.gz
packages-bfc686181b6c0eaab1750e53c7597518d226941d.tar.bz2
packages-bfc686181b6c0eaab1750e53c7597518d226941d.tar.xz
packages-bfc686181b6c0eaab1750e53c7597518d226941d.zip
user/libvorbis: new patch for CVE-2018-10392 (#157)
Also, use upstream patch for CVE-2017-14160
Diffstat (limited to 'user/libvorbis/CVE-2017-14160-and-2018-10393.patch')
-rw-r--r--user/libvorbis/CVE-2017-14160-and-2018-10393.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/user/libvorbis/CVE-2017-14160-and-2018-10393.patch b/user/libvorbis/CVE-2017-14160-and-2018-10393.patch
new file mode 100644
index 000000000..3a7097ec7
--- /dev/null
+++ b/user/libvorbis/CVE-2017-14160-and-2018-10393.patch
@@ -0,0 +1,27 @@
+From 018ca26dece618457dd13585cad52941193c4a25 Mon Sep 17 00:00:00 2001
+From: Thomas Daede <daede003@umn.edu>
+Date: Wed, 9 May 2018 14:56:59 -0700
+Subject: [PATCH] CVE-2017-14160: fix bounds check on very low sample rates.
+
+---
+ lib/psy.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/lib/psy.c b/lib/psy.c
+index 422c6f1..1310123 100644
+--- a/lib/psy.c
++++ b/lib/psy.c
+@@ -602,8 +602,9 @@ static void bark_noise_hybridmp(int n,const long *b,
+ for (i = 0, x = 0.f;; i++, x += 1.f) {
+
+ lo = b[i] >> 16;
+- if( lo>=0 ) break;
+ hi = b[i] & 0xffff;
++ if( lo>=0 ) break;
++ if( hi>=n ) break;
+
+ tN = N[hi] + N[-lo];
+ tX = X[hi] - X[-lo];
+--
+2.22.0
+