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
3b5b977c
Commit
3b5b977c
authored
May 02, 2019
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/webm_chunk: Check header filename length
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
4fd74a2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
webm_chunk.c
libavformat/webm_chunk.c
+6
-1
No files found.
libavformat/webm_chunk.c
View file @
3b5b977c
...
...
@@ -92,11 +92,16 @@ static int get_chunk_filename(AVFormatContext *s, int is_header, char *filename)
return
AVERROR
(
EINVAL
);
}
if
(
is_header
)
{
int
len
;
if
(
!
wc
->
header_filename
)
{
av_log
(
oc
,
AV_LOG_ERROR
,
"No header filename provided
\n
"
);
return
AVERROR
(
EINVAL
);
}
av_strlcpy
(
filename
,
wc
->
header_filename
,
MAX_FILENAME_SIZE
);
len
=
av_strlcpy
(
filename
,
wc
->
header_filename
,
MAX_FILENAME_SIZE
);
if
(
len
>=
MAX_FILENAME_SIZE
)
{
av_log
(
oc
,
AV_LOG_ERROR
,
"Header filename too long
\n
"
);
return
AVERROR
(
EINVAL
);
}
}
else
{
if
(
av_get_frame_filename
(
filename
,
MAX_FILENAME_SIZE
,
s
->
url
,
wc
->
chunk_index
-
1
)
<
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