projects
/
platform
/
upstream
/
libvorbis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e74456a
)
CVE-2017-14160: fix bounds check on very low sample rates.
author
Thomas Daede
<daede003@umn.edu>
Wed, 9 May 2018 21:56:59 +0000
(14:56 -0700)
committer
Thomas Daede
<daede003@umn.edu>
Wed, 9 May 2018 21:56:59 +0000
(14:56 -0700)
lib/psy.c
patch
|
blob
|
history
diff --git
a/lib/psy.c
b/lib/psy.c
index
422c6f1
..
1310123
100644
(file)
--- 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];