Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit d859cbb

Browse files
committed
Merge branch 'kanan/expand-all' of https://github.com/microsoft/onefuzz into kanan/expand-all
2 parents cbd6f26 + b9f8b22 commit d859cbb

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

src/agent/coverage/fuzz/Cargo.lock

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/agent/coverage/fuzz/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,10 @@ name = "fuzz_target_record_coverage"
2828
path = "fuzz_targets/fuzz_target_record_coverage.rs"
2929
test = false
3030
doc = false
31+
32+
[[bin]]
33+
name = "fuzz_target_allowlist_parse"
34+
path = "fuzz_targets/fuzz_target_allowlist_parse.rs"
35+
test = false
36+
doc = false
37+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#![no_main]
2+
3+
use libfuzzer_sys::fuzz_target;
4+
use coverage::allowlist::AllowList;
5+
6+
fuzz_target!(|data: &[u8]| {
7+
// fuzzed code goes here
8+
if let Ok(s) = std::str::from_utf8(data)
9+
{
10+
let _ = AllowList::parse(s);
11+
}
12+
});

0 commit comments

Comments
 (0)