New fuzz target exercises TiffHeader::parse, dimensions/colortype probing, chunk-by-chunk reading, and multi-IFD iteration. Guards get_chunk_type/chunk_dimensions behind dimensions() success check to avoid documented panics on non-image IFDs.
32 lines
508 B
TOML
32 lines
508 B
TOML
[package]
|
|
name = "tiff-fuzz"
|
|
version = "0.0.0"
|
|
authors = ["Automatically generated"]
|
|
publish = false
|
|
edition = "2018"
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[dependencies]
|
|
libfuzzer-sys = "0.4"
|
|
|
|
[dependencies.tiff]
|
|
path = ".."
|
|
|
|
# Prevent this from interfering with workspaces
|
|
[workspace]
|
|
members = ["."]
|
|
|
|
[[bin]]
|
|
name = "decode_image"
|
|
path = "fuzz_targets/decode_image.rs"
|
|
test = false
|
|
doc = false
|
|
|
|
[[bin]]
|
|
name = "decode_comprehensive"
|
|
path = "fuzz_targets/decode_comprehensive.rs"
|
|
test = false
|
|
doc = false
|