Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
de41d537
Commit
de41d537
authored
Mar 15, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dvbsub_parser: Fix potential pointer overflows
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
84da9339
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dvbsub_parser.c
libavcodec/dvbsub_parser.c
+3
-3
No files found.
libavcodec/dvbsub_parser.c
View file @
de41d537
...
...
@@ -122,11 +122,11 @@ static int dvbsub_parse(AVCodecParserContext *s,
{
if
(
*
p
==
0x0f
)
{
if
(
p
+
6
<=
p_end
)
if
(
6
<=
p_end
-
p
)
{
len
=
AV_RB16
(
p
+
4
);
if
(
p
+
len
+
6
<=
p_end
)
if
(
len
+
6
<=
p_end
-
p
)
{
*
poutbuf_size
+=
len
+
6
;
...
...
@@ -136,7 +136,7 @@ static int dvbsub_parse(AVCodecParserContext *s,
}
else
break
;
}
else
if
(
*
p
==
0xff
)
{
if
(
p
+
1
<
p_end
)
if
(
1
<
p_end
-
p
)
{
av_dlog
(
avctx
,
"Junk at end of packet
\n
"
);
}
...
...
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