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
40a7700b
Commit
40a7700b
authored
May 11, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/flacenc: Check length in flac_write_block_comment()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
eca38864
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
flacenc.c
libavformat/flacenc.c
+3
-1
No files found.
libavformat/flacenc.c
View file @
40a7700b
...
...
@@ -50,12 +50,14 @@ static int flac_write_block_comment(AVIOContext *pb, AVDictionary **m,
int
last_block
,
int
bitexact
)
{
const
char
*
vendor
=
bitexact
?
"ffmpeg"
:
LIBAVFORMAT_IDENT
;
unsigned
in
t
len
;
int64_
t
len
;
uint8_t
*
p
,
*
p0
;
ff_metadata_conv
(
m
,
ff_vorbiscomment_metadata_conv
,
NULL
);
len
=
ff_vorbiscomment_length
(
*
m
,
vendor
);
if
(
len
>=
((
1
<<
24
)
-
4
))
return
AVERROR
(
EINVAL
);
p0
=
av_malloc
(
len
+
4
);
if
(
!
p0
)
return
AVERROR
(
ENOMEM
);
...
...
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