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
eca38864
Commit
eca38864
authored
May 11, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/vorbiscomment: Check entry length in ff_vorbiscomment_write()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
a633928d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vorbiscomment.c
libavformat/vorbiscomment.c
+4
-2
No files found.
libavformat/vorbiscomment.c
View file @
eca38864
...
...
@@ -61,8 +61,10 @@ int ff_vorbiscomment_write(uint8_t **p, AVDictionary **m,
AVDictionaryEntry
*
tag
=
NULL
;
bytestream_put_le32
(
p
,
count
);
while
((
tag
=
av_dict_get
(
*
m
,
""
,
tag
,
AV_DICT_IGNORE_SUFFIX
)))
{
unsigned
int
len1
=
strlen
(
tag
->
key
);
unsigned
int
len2
=
strlen
(
tag
->
value
);
int64_t
len1
=
strlen
(
tag
->
key
);
int64_t
len2
=
strlen
(
tag
->
value
);
if
(
len1
+
1
+
len2
>
UINT32_MAX
)
return
AVERROR
(
EINVAL
);
bytestream_put_le32
(
p
,
len1
+
1
+
len2
);
bytestream_put_buffer
(
p
,
tag
->
key
,
len1
);
bytestream_put_byte
(
p
,
'='
);
...
...
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