Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
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
Show 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 )
...
@@ -442,8 +442,12 @@ static block_t *BlockParseRTP( access_t *p_access, block_t *p_block )
else
if
(
i_payload_type
!=
33
)
else
if
(
i_payload_type
!=
33
)
msg_Dbg
(
p_access
,
"unsupported RTP payload type (%u)"
,
i_payload_type
);
msg_Dbg
(
p_access
,
"unsupported RTP payload type (%u)"
,
i_payload_type
);
if
(
i_extension_flag
)
if
(
i_extension_flag
)
{
if
(
p_block
->
i_buffer
<
16
)
goto
trash
;
i_extension_length
=
4
+
i_extension_length
=
4
+
4
*
(
(
p_block
->
p_buffer
[
14
]
<<
8
)
+
p_block
->
p_buffer
[
15
]
);
4
*
(
(
p_block
->
p_buffer
[
14
]
<<
8
)
+
p_block
->
p_buffer
[
15
]
);
}
/* Skip header + CSRC extension field n*(32 bits) + extension */
/* Skip header + CSRC extension field n*(32 bits) + extension */
i_skip
+=
RTP_HEADER_LEN
+
4
*
i_CSRC_count
+
i_extension_length
;
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