Files
betterxen/fuzz/Cargo.toml
T
elforeign db50deb9f7 fuzz: add bounded PE parser fuzz target
Add a pe_parse cargo-fuzz target that feeds malformed bytes to
ParsedPe::parse and rva_to_file_offset and, only when the summed
section mapping size and SizeOfImage are at most 64 MiB, to the checked
load_into_memory mapping step. No guest code is executed.

Refs #157

Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
2026-11-24 02:51:05 -06:00

43 lines
748 B
TOML

[package]
name = "xenora-fuzz"
version = "0.0.0"
publish = false
edition = "2024"
license = "GPL-3.0-or-later"
[package.metadata]
cargo-fuzz = true
[dependencies]
libfuzzer-sys = "=0.4.13"
xenora-decoder = { path = "../crates/decoder" }
xenora-loader = { path = "../crates/loader" }
xenora-ref = { path = "../crates/ref" }
xenora-shader = { path = "../crates/shader" }
[workspace]
[[bin]]
name = "instruction_stream"
path = "fuzz_targets/instruction_stream.rs"
test = false
doc = false
[[bin]]
name = "fixture"
path = "fuzz_targets/fixture.rs"
test = false
doc = false
[[bin]]
name = "pe_parse"
path = "fuzz_targets/pe_parse.rs"
test = false
doc = false
[[bin]]
name = "reference"
path = "fuzz_targets/reference.rs"
test = false
doc = false