Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
64bbfe6b
Commit
64bbfe6b
authored
Feb 12, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix out-of-bound read in RTP access
Fortunately, the harm potential of this old bug seems pretty low
parent
3042c6b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
modules/access/udp.c
modules/access/udp.c
+4
-0
No files found.
modules/access/udp.c
View file @
64bbfe6b
...
...
@@ -442,8 +442,12 @@ static block_t *BlockParseRTP( access_t *p_access, block_t *p_block )
else
if
(
i_payload_type
!=
33
)
msg_Dbg
(
p_access
,
"unsupported RTP payload type (%u)"
,
i_payload_type
);
if
(
i_extension_flag
)
{
if
(
p_block
->
i_buffer
<
16
)
goto
trash
;
i_extension_length
=
4
+
4
*
(
(
p_block
->
p_buffer
[
14
]
<<
8
)
+
p_block
->
p_buffer
[
15
]
);
}
/* Skip header + CSRC extension field n*(32 bits) + extension */
i_skip
+=
RTP_HEADER_LEN
+
4
*
i_CSRC_count
+
i_extension_length
;
...
...
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