Add fuzzer for the encoder

This commit is contained in:
Ivan Smirnov 2021-11-30 16:21:03 +00:00
commit 0701c95f3d
3 changed files with 57 additions and 0 deletions

25
fuzz/Cargo.toml Normal file
View file

@ -0,0 +1,25 @@
[package]
name = "qoi-fast-fuzz"
version = "0.1.0"
authors = ["Ivan Smirnov <rust@ivan.smirnov.ie>"]
publish = false
edition = "2021"
[package.metadata]
cargo-fuzz = true
[dependencies]
# internal
qoi-fast = { path = ".." }
# external
libfuzzer-sys = "0.4"
# Prevent this from interfering with workspaces
[workspace]
members = ["."]
[[bin]]
name = "qoi_encode"
path = "fuzz_targets/qoi_encode.rs"
test = false
doc = false