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
1b7a4c93
Commit
1b7a4c93
authored
Jun 09, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/bintext: check extradata size
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c61c8536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
bintext.c
libavcodec/bintext.c
+5
-0
No files found.
libavcodec/bintext.c
View file @
1b7a4c93
...
...
@@ -54,6 +54,11 @@ static av_cold int decode_init(AVCodecContext *avctx)
s
->
font_height
=
p
[
0
];
s
->
flags
=
p
[
1
];
p
+=
2
;
if
(
avctx
->
extradata_size
<
2
+
(
!!
(
s
->
flags
&
BINTEXT_PALETTE
))
*
3
*
16
+
(
!!
(
s
->
flags
&
BINTEXT_FONT
))
*
s
->
font_height
*
256
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"not enough extradata
\n
"
);
return
AVERROR_INVALIDDATA
;
}
}
else
{
s
->
font_height
=
8
;
s
->
flags
=
0
;
...
...
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