Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
4faf56ff
Commit
4faf56ff
authored
Mar 30, 2017
by
François Cartegnie
🤞
Browse files
packetizer: mpeg4video: check for oob read
parent
19b8ec85
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/packetizer/mpeg4video.c
View file @
4faf56ff
...
...
@@ -285,6 +285,9 @@ static block_t *ParseMPEGBlock( decoder_t *p_dec, block_t *p_frag )
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
block_t
*
p_pic
=
NULL
;
if
(
p_frag
->
i_buffer
<
4
)
return
p_frag
;
const
uint32_t
i_startcode
=
GetDWBE
(
p_frag
->
p_buffer
);
if
(
i_startcode
==
VISUAL_OBJECT_SEQUENCE_START_CODE
||
i_startcode
==
VISUAL_OBJECT_SEQUENCE_END_CODE
||
...
...
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