Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
e2b8b4ca
Commit
e2b8b4ca
authored
Nov 26, 2014
by
Benoit Fouet
Committed by
Michael Niedermayer
Nov 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/apngdec: validate frame dimensions.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
345cfd04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
apngdec.c
libavformat/apngdec.c
+5
-1
No files found.
libavformat/apngdec.c
View file @
e2b8b4ca
...
...
@@ -301,7 +301,11 @@ static int decode_fctl_chunk(AVFormatContext *s, APNGDemuxContext *ctx, AVPacket
height
!=
s
->
streams
[
0
]
->
codec
->
height
||
x_offset
!=
0
||
y_offset
!=
0
)
{
if
(
sequence_number
==
0
)
if
(
sequence_number
==
0
||
x_offset
>=
s
->
streams
[
0
]
->
codec
->
width
||
width
>
s
->
streams
[
0
]
->
codec
->
width
-
x_offset
||
y_offset
>=
s
->
streams
[
0
]
->
codec
->
height
||
height
>
s
->
streams
[
0
]
->
codec
->
height
-
y_offset
)
return
AVERROR_INVALIDDATA
;
ctx
->
is_key_frame
=
0
;
}
else
{
...
...
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