Merge branch 'main' into kanan/expand-all

This commit is contained in:
Kanan B 2023-10-18 17:34:55 -07:00 committed by GitHub
commit b9f8b22b2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 0 deletions

View File

@ -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"

View File

@ -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

View File

@ -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);
}
});