ALT Linux repos
S: | 1.3.7-alt1 |
5.0: | 1.2.0-alt3 |
4.1: | 1.2.0-alt3.M41.1 |
4.0: | 1.2.0-alt3 |
+updates: | 1.1.2-alt3 |
3.0: | 1.1.1-alt2 |
Group :: System/Libraries
RPM: libvorbis
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 0002-CVE-2017-14160-fix-bounds-check-on-very-low-sample-r.patch
Download
Download
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 422c6f1e..13101230 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];