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
1ec777dc
Commit
1ec777dc
authored
Apr 04, 2019
by
Tristan Matthews
Committed by
James Almer
Apr 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/matroskaenc: fix leak on error
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
d6a83922
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
matroskaenc.c
libavformat/matroskaenc.c
+3
-1
No files found.
libavformat/matroskaenc.c
View file @
1ec777dc
...
...
@@ -694,8 +694,10 @@ static int put_flac_codecpriv(AVFormatContext *s,
av_dict_set
(
&
dict
,
"WAVEFORMATEXTENSIBLE_CHANNEL_MASK"
,
buf
,
0
);
len
=
ff_vorbiscomment_length
(
dict
,
vendor
,
NULL
,
0
);
if
(
len
>=
((
1
<<
24
)
-
4
))
if
(
len
>=
((
1
<<
24
)
-
4
))
{
av_dict_free
(
&
dict
);
return
AVERROR
(
EINVAL
);
}
data
=
av_malloc
(
len
+
4
);
if
(
!
data
)
{
...
...
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