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
43a4276c
Commit
43a4276c
authored
Jun 06, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/bmp_parser: Check fsize
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
37005e65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
bmp_parser.c
libavcodec/bmp_parser.c
+2
-1
No files found.
libavcodec/bmp_parser.c
View file @
43a4276c
...
...
@@ -53,7 +53,8 @@ restart:
if
(
bpc
->
pc
.
frame_start_found
==
0
)
{
if
((
state
>>
48
)
==
((
'B'
<<
8
)
|
'M'
))
{
bpc
->
fsize
=
av_bswap32
(
state
>>
16
);
bpc
->
pc
.
frame_start_found
=
1
;
if
(
bpc
->
fsize
>
17
)
bpc
->
pc
.
frame_start_found
=
1
;
}
}
else
if
(
bpc
->
pc
.
frame_start_found
==
2
+
4
+
4
)
{
// unsigned hsize = av_bswap32(state>>32);
...
...
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