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
a7bc6b8f
Commit
a7bc6b8f
authored
Oct 11, 2018
by
Janne Grunau
Committed by
Ronald S. Bultje
Oct 23, 2018
Browse files
fuzzer: improve coverage of lib.c
parent
520894c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
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