Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
e9757915
Commit
e9757915
authored
May 10, 2014
by
James Zern
Committed by
Gerrit Code Review
May 10, 2014
Browse files
Merge "vp9_dx_iface: subtract ptrs to validate frame_size"
parents
6d065ba3
a8cfbbe3
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/vp9_dx_iface.c
View file @
e9757915
...
...
@@ -413,7 +413,8 @@ static vpx_codec_err_t decoder_decode(vpx_codec_alg_priv_t *ctx,
for
(
i
=
0
;
i
<
frame_count
;
++
i
)
{
const
uint32_t
frame_size
=
frame_sizes
[
i
];
if
(
data_start
<
data
||
data_start
+
frame_size
>=
data_end
)
{
if
(
data_start
<
data
||
frame_size
>
(
uint32_t
)(
data_end
-
data_start
))
{
ctx
->
base
.
err_detail
=
"Invalid frame size in index"
;
return
VPX_CODEC_CORRUPT_FRAME
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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