d5917e7aab
road_file: any bytes as one road file in the home store. The parser never panics; a road that parses renders to canonical text that parses back to the same road and rendering is a fixed point; compile never panics; and a file that does not parse, or a road the compiler reports an error for, leaves every plan byte-identical (deny by default). envelope: Envelope::decode never panics; whatever it accepts re-encodes, decodes to the same envelope and encodes stably. Own workspace, as cargo fuzz lays it out. On Windows with the stable MSVC toolchain and no sanitizer, build.rs links win_sections.c, which gives the SanitizerCoverage counters their COFF section bounds (compiler-rt only ships them inside a sanitizer runtime); the exact command is in road_file.rs.
37 lines
677 B
TOML
37 lines
677 B
TOML
[package]
|
|
name = "via-core-fuzz"
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
publish = false
|
|
license = "CPAL-1.0"
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[build-dependencies]
|
|
cc = "1"
|
|
|
|
[dependencies]
|
|
libfuzzer-sys = "0.4"
|
|
roads = { path = "../crates/roads" }
|
|
proto = { path = "../crates/proto" }
|
|
jiff = { version = "0.2", default-features = false, features = ["std"] }
|
|
|
|
# Its own workspace, so the fuzz build never joins the main one (cargo fuzz's layout).
|
|
[workspace]
|
|
members = ["."]
|
|
|
|
[[bin]]
|
|
name = "road_file"
|
|
path = "fuzz_targets/road_file.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "envelope"
|
|
path = "fuzz_targets/envelope.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|