Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
evpobr
Vorbis
Commits
018ca26d
Commit
018ca26d
authored
May 09, 2018
by
Thomas Daede
Browse files
CVE-2017-14160: fix bounds check on very low sample rates.
parent
e74456ac
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/psy.c
View file @
018ca26d
...
@@ -602,8 +602,9 @@ static void bark_noise_hybridmp(int n,const long *b,
...
@@ -602,8 +602,9 @@ static void bark_noise_hybridmp(int n,const long *b,
for
(
i
=
0
,
x
=
0
.
f
;;
i
++
,
x
+=
1
.
f
)
{
for
(
i
=
0
,
x
=
0
.
f
;;
i
++
,
x
+=
1
.
f
)
{
lo
=
b
[
i
]
>>
16
;
lo
=
b
[
i
]
>>
16
;
if
(
lo
>=
0
)
break
;
hi
=
b
[
i
]
&
0xffff
;
hi
=
b
[
i
]
&
0xffff
;
if
(
lo
>=
0
)
break
;
if
(
hi
>=
n
)
break
;
tN
=
N
[
hi
]
+
N
[
-
lo
];
tN
=
N
[
hi
]
+
N
[
-
lo
];
tX
=
X
[
hi
]
-
X
[
-
lo
];
tX
=
X
[
hi
]
-
X
[
-
lo
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment