mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 03:39:52 +00:00
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>
43 lines
748 B
TOML
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
|