2026-09-30 05:02:08 -04:00
|
|
|
[package]
|
|
|
|
|
name = "photocraft-codecs-fuzz"
|
|
|
|
|
version = "0.0.0"
|
|
|
|
|
publish = false
|
|
|
|
|
edition = "2024"
|
2026-10-04 10:06:17 -04:00
|
|
|
license = "MIT OR Apache-2.0"
|
2026-09-30 05:02:08 -04:00
|
|
|
|
|
|
|
|
[package.metadata]
|
|
|
|
|
cargo-fuzz = true
|
|
|
|
|
|
|
|
|
|
# Standalone workspace so the main workspace's `crates/*` glob and lints do
|
|
|
|
|
# not apply (cargo-fuzz needs nightly + sanitizer flags).
|
|
|
|
|
[workspace]
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
libfuzzer-sys = "0.4"
|
2026-10-07 16:20:40 +02:00
|
|
|
photocraft-codecs = { path = "..", features = ["heif"] }
|
|
|
|
|
# Called directly too: the codec turns its panics into errors (see decode_heif.rs).
|
2026-10-12 07:22:11 -07:00
|
|
|
heic-rs = "=0.1.4"
|
2026-09-30 05:02:08 -04:00
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
|
debug = 1
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "decode_any"
|
|
|
|
|
path = "fuzz_targets/decode_any.rs"
|
|
|
|
|
test = false
|
|
|
|
|
doc = false
|
|
|
|
|
bench = false
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "decode_png"
|
|
|
|
|
path = "fuzz_targets/decode_png.rs"
|
|
|
|
|
test = false
|
|
|
|
|
doc = false
|
|
|
|
|
bench = false
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "decode_jpeg"
|
|
|
|
|
path = "fuzz_targets/decode_jpeg.rs"
|
|
|
|
|
test = false
|
|
|
|
|
doc = false
|
|
|
|
|
bench = false
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "decode_tiff"
|
|
|
|
|
path = "fuzz_targets/decode_tiff.rs"
|
|
|
|
|
test = false
|
|
|
|
|
doc = false
|
|
|
|
|
bench = false
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "decode_exr"
|
|
|
|
|
path = "fuzz_targets/decode_exr.rs"
|
|
|
|
|
test = false
|
|
|
|
|
doc = false
|
|
|
|
|
bench = false
|
2026-10-07 16:20:40 +02:00
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "decode_heif"
|
|
|
|
|
path = "fuzz_targets/decode_heif.rs"
|
|
|
|
|
test = false
|
|
|
|
|
doc = false
|
|
|
|
|
bench = false
|
2026-10-12 07:26:37 +02:00
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "decode_gif"
|
|
|
|
|
path = "fuzz_targets/decode_gif.rs"
|
|
|
|
|
test = false
|
|
|
|
|
doc = false
|
|
|
|
|
bench = false
|