mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
libvorbis: CVE-2017-14160 CVE-2018-10393
CVE-2017-14160: fix bounds check on very low sample rates. (From OE-Core rev: 5bed33fbd29eea9449114186d42b4b2a5e88b32f) Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
3cbd516bd1
commit
6f7c2da540
|
|
@ -0,0 +1,33 @@
|
|||
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.
|
||||
|
||||
CVE: CVE-2017-14160
|
||||
CVE: CVE-2018-10393
|
||||
Upstream-Status: Backport from https://gitlab.xiph.org/xiph/vorbis/commit/018ca26dece618457dd13585cad52941193c4a25
|
||||
|
||||
Signed-off-by: Thomas Daede <daede003@umn.edu>
|
||||
Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
|
||||
---
|
||||
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.7.4
|
||||
|
||||
|
|
@ -9,12 +9,14 @@ LICENSE = "BSD"
|
|||
LIC_FILES_CHKSUM = "file://COPYING;md5=7d2c487d2fc7dd3e3c7c465a5b7f6217 \
|
||||
file://include/vorbis/vorbisenc.h;beginline=1;endline=11;md5=d1c1d138863d6315131193d4046d81cb"
|
||||
DEPENDS = "libogg"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "http://downloads.xiph.org/releases/vorbis/${BP}.tar.xz \
|
||||
file://0001-configure-Check-for-clang.patch \
|
||||
file://CVE-2017-14633.patch \
|
||||
file://CVE-2017-14632.patch \
|
||||
file://CVE-2018-5146.patch \
|
||||
file://CVE-2017-14160.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "28cb28097c07a735d6af56e598e1c90f"
|
||||
SRC_URI[sha256sum] = "54f94a9527ff0a88477be0a71c0bab09a4c3febe0ed878b24824906cd4b0e1d1"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user