mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-10 09:11:36 +00:00
Merge branch 'main' into kanan/expand-all
This commit is contained in:
commit
b9f8b22b2e
31
src/agent/coverage/fuzz/Cargo.lock
generated
31
src/agent/coverage/fuzz/Cargo.lock
generated
@ -145,6 +145,7 @@ dependencies = [
|
||||
"log",
|
||||
"nix",
|
||||
"pete",
|
||||
"process_control",
|
||||
"procfs",
|
||||
"regex",
|
||||
"symbolic",
|
||||
@ -805,6 +806,17 @@ dependencies = [
|
||||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "process_control"
|
||||
version = "4.0.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "32e056a69288d0a211f4c74c48391c6eb86e714fdcb9dc58a9f34302da9c20bf"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"signal-hook",
|
||||
"windows-sys 0.48.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "procfs"
|
||||
version = "0.15.1"
|
||||
@ -1012,6 +1024,25 @@ dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "signal-hook"
|
||||
version = "0.3.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"signal-hook-registry",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "signal-hook-registry"
|
||||
version = "1.4.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1"
|
||||
dependencies = [
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "siphasher"
|
||||
version = "0.3.10"
|
||||
|
@ -28,3 +28,10 @@ name = "fuzz_target_record_coverage"
|
||||
path = "fuzz_targets/fuzz_target_record_coverage.rs"
|
||||
test = false
|
||||
doc = false
|
||||
|
||||
[[bin]]
|
||||
name = "fuzz_target_allowlist_parse"
|
||||
path = "fuzz_targets/fuzz_target_allowlist_parse.rs"
|
||||
test = false
|
||||
doc = false
|
||||
|
||||
|
@ -0,0 +1,12 @@
|
||||
#![no_main]
|
||||
|
||||
use libfuzzer_sys::fuzz_target;
|
||||
use coverage::allowlist::AllowList;
|
||||
|
||||
fuzz_target!(|data: &[u8]| {
|
||||
// fuzzed code goes here
|
||||
if let Ok(s) = std::str::from_utf8(data)
|
||||
{
|
||||
let _ = AllowList::parse(s);
|
||||
}
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user