Adds serde_yaml = { version = "0.9" } to fuzz/Cargo.toml to support the profile_yaml fuzz target. Version matches pdftract-core's serde_yaml dependency (0.9).
Closes bf-3mull
54 lines
1.2 KiB
TOML
54 lines
1.2 KiB
TOML
[package]
|
|
name = "pdftract-fuzz"
|
|
version = "0.0.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
publish = false
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
# Prevent this from interfering with the parent workspace
|
|
[workspace]
|
|
|
|
[features]
|
|
default = []
|
|
|
|
[dependencies]
|
|
# Enable all necessary features for comprehensive fuzzing
|
|
# - profiles: for profile_yaml target
|
|
# - serde: for JSON/schema output used by content stream tests
|
|
# - decrypt: for encryption-related fuzzing
|
|
# - quick-xml: for XMP and structured content
|
|
# - cjk: for CJK text extraction fuzzing
|
|
pdftract-core = { path = "../crates/pdftract-core", features = ["profiles", "serde", "decrypt", "quick-xml", "cjk"] }
|
|
libfuzzer-sys = { version = "0.4", features = ["arbitrary-derive"] }
|
|
serde_yaml = { version = "0.9" }
|
|
|
|
[[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"
|
|
|
|
[[bin]]
|
|
name = "profile_yaml"
|
|
path = "fuzz_targets/profile_yaml.rs"
|