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
29fa570d
Commit
29fa570d
authored
May 12, 2011
by
Uoti Urpala
Committed by
Reinhard Tartler
May 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asfdec: fix possible overread on broken files.
parent
69fa2396
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
asfdec.c
libavformat/asfdec.c
+4
-1
No files found.
libavformat/asfdec.c
View file @
29fa570d
...
...
@@ -852,7 +852,10 @@ static int asf_read_frame_header(AVFormatContext *s, AVIOContext *pb){
}
if
(
asf
->
packet_flags
&
0x01
)
{
DO_2BITS
(
asf
->
packet_segsizetype
>>
6
,
asf
->
packet_frag_size
,
0
);
// 0 is illegal
if
(
asf
->
packet_frag_size
>
asf
->
packet_size_left
-
rsize
){
if
(
rsize
>
asf
->
packet_size_left
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"packet_replic_size is invalid
\n
"
);
return
-
1
;
}
else
if
(
asf
->
packet_frag_size
>
asf
->
packet_size_left
-
rsize
){
if
(
asf
->
packet_frag_size
>
asf
->
packet_size_left
-
rsize
+
asf
->
packet_padsize
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"packet_frag_size is invalid (%d-%d)
\n
"
,
asf
->
packet_size_left
,
rsize
);
return
-
1
;
...
...
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