Skip to content

Add fuzzer#45

Merged
dloebl merged 11 commits into
mainfrom
add-fuzzer
Oct 15, 2022
Merged

Add fuzzer#45
dloebl merged 11 commits into
mainfrom
add-fuzzer

Conversation

@dloebl

@dloebl dloebl commented Feb 23, 2022

Copy link
Copy Markdown
Owner

Add fuzzer for cgif which allows covering the complete API.
An initial seed corpus can be dynamically generated from our unit tests (tests/).

The seed corpus archive can be generated as follows:
meson setup build -Dfuzzer=true
meson test -C build
> build/cgif_fuzzer_seed_corpus.zip

Note: Generating a seed from a unit test is done by wrapping the cgif API (fuzz/cgif_create_fuzz_seed.c). However, this wrapper does not emulate the cgif API entirely: Some unit tests are expected to fail when wrapped (e.g. tests/eindex.c).

seed corpus is generated from our unit tests
handle expected failures while generating the fuzzer seed corpus differently
@dloebl dloebl marked this pull request as ready for review October 15, 2022 13:48
@dloebl dloebl requested a review from MCLoebl October 15, 2022 13:53
@dloebl dloebl marked this pull request as draft October 15, 2022 14:35
@dloebl dloebl marked this pull request as ready for review October 15, 2022 14:45
@dloebl dloebl merged commit 11ee9a0 into main Oct 15, 2022
@dloebl dloebl deleted the add-fuzzer branch November 20, 2022 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants