Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
François Cartegnie
dav1d
Commits
a7bc6b8f
Commit
a7bc6b8f
authored
Oct 11, 2018
by
Janne Grunau
Committed by
Ronald S. Bultje
Oct 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuzzer: improve coverage of lib.c
parent
520894c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests/libfuzzer/dav1d_fuzzer.c
tests/libfuzzer/dav1d_fuzzer.c
+3
-0
No files found.
tests/libfuzzer/dav1d_fuzzer.c
View file @
a7bc6b8f
...
...
@@ -46,6 +46,8 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
const
uint8_t
*
ptr
=
data
;
int
err
;
dav1d_version
();
if
(
size
<
32
)
goto
end
;
ptr
+=
32
;
// skip ivf header
...
...
@@ -91,6 +93,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
}
while
(
err
==
0
);
cleanup:
dav1d_flush
(
ctx
);
dav1d_close
(
&
ctx
);
end:
return
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