pdftract/fuzz/Cargo.toml
jedarden 34aa9c06d9 fix(bf-1c4f6): build content fuzz harness
- Add content target to fuzz/Cargo.toml
- Fix font fingerprint build script to use hex string keys instead of byte arrays
- Update fingerprint.rs to use hex string lookups
- Build verification: 54MB binary produced successfully

Acceptance criteria:
-  cargo fuzz build content completes successfully
-  No compilation errors or warnings
-  Harness binary built and available

Closes bf-1c4f6
2026-07-05 13:22:49 -04:00

41 lines
756 B
TOML

[package]
name = "pdftract-fuzz"
version = "0.0.0"
edition = "2021"
license = "MIT OR Apache-2.0"
publish = false
[package.metadata]
cargo-fuzz = true
[dependencies]
pdftract-core = { path = "../crates/pdftract-core" }
libfuzzer-sys = { version = "0.4", features = ["arbitrary-derive"] }
# Prevent this from interfering with the workspace library
[workspace]
members = ["."]
[[bin]]
name = "lexer"
path = "fuzz_targets/lexer.rs"
[[bin]]
name = "object_parser"
path = "fuzz_targets/object_parser.rs"
[[bin]]
name = "xref"
path = "fuzz_targets/xref.rs"
[[bin]]
name = "stream_decoder"
path = "fuzz_targets/stream_decoder.rs"
[[bin]]
name = "cmap_parser"
path = "fuzz_targets/cmap_parser.rs"
[[bin]]
name = "content"
path = "fuzz_targets/content.rs"