Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
dav1d
Commits
b004c1a7
Verified
Commit
b004c1a7
authored
Oct 20, 2018
by
James Almer
Browse files
ivf: fix the conversion specifier in printed error message strings
Fixes stack buffer overflows.
parent
679754e7
Pipeline
#1156
passed with stage
in 2 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tools/input/ivf.c
View file @
b004c1a7
...
...
@@ -57,12 +57,12 @@ static int ivf_open(IvfInputContext *const c, const char *const file,
fclose
(
c
->
f
);
return
-
1
;
}
else
if
(
memcmp
(
hdr
,
"DKIF"
,
4
))
{
fprintf
(
stderr
,
"%s is not an IVF file [tag=%4s|0x%02x%02x%02x%02x]
\n
"
,
fprintf
(
stderr
,
"%s is not an IVF file [tag=%
.
4s|0x%02x%02x%02x%02x]
\n
"
,
file
,
hdr
,
hdr
[
0
],
hdr
[
1
],
hdr
[
2
],
hdr
[
3
]);
fclose
(
c
->
f
);
return
-
1
;
}
else
if
(
memcmp
(
&
hdr
[
8
],
"AV01"
,
4
))
{
fprintf
(
stderr
,
"%s is not an AV1 file [tag=%4s|0x%02x%02x%02x%02x]
\n
"
,
fprintf
(
stderr
,
"%s is not an AV1 file [tag=%
.
4s|0x%02x%02x%02x%02x]
\n
"
,
file
,
&
hdr
[
8
],
hdr
[
8
],
hdr
[
9
],
hdr
[
10
],
hdr
[
11
]);
fclose
(
c
->
f
);
return
-
1
;
...
...
Write
Preview
Supports
Markdown
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