Skip to content

Commit f11169f

Browse files
committed
renaming fuzz targets to start with fuzz_
Signed-off-by: Mark Rossett <[email protected]>
1 parent b24e6cb commit f11169f

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/Fuzzing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
fuzzing:
1414
uses: ./.github/workflows/dep_fuzzing.yml
1515
with:
16-
targets: '["host_print", "guest_call", "host_call"]' # Pass as a JSON array
16+
targets: '["fuzz_host_print", "fuzz_guest_call", "fuzz_host_call"]' # Pass as a JSON array
1717
max_total_time: 18000 # 5 hours in seconds
1818
secrets: inherit

Justfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,10 @@ fuzz fuzz-target:
198198
# Fuzzes the given target. Stops after `max_time` seconds
199199
fuzz-timed fuzz-target max_time:
200200
cargo +nightly fuzz run {{ fuzz-target }} --release -- -max_total_time={{ max_time }}
201+
202+
# Builds fuzzers for submission to expernal fuzzing services
203+
build-fuzzers: (build-fuzzer "fuzz_guest_call") (build-fuzzer "fuzz_host_call") (build-fuzzer "fuzz_host_print")
204+
205+
# Builds the given fuzzer
206+
build-fuzzer fuzz-target:
207+
cargo +nightly fuzz build {{ fuzz-target }} --release -s none

fuzz/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ hyperlight-testing = { workspace = true }
1313
hyperlight-host = { workspace = true, default-features = true, features = ["fuzzing"]}
1414

1515
[[bin]]
16-
name = "host_print"
16+
name = "fuzz_host_print"
1717
path = "fuzz_targets/host_print.rs"
1818
test = false
1919
doc = false
2020
bench = false
2121

2222
[[bin]]
23-
name = "guest_call"
23+
name = "fuzz_guest_call"
2424
path = "fuzz_targets/guest_call.rs"
2525
test = false
2626
doc = false
2727
bench = false
2828

2929
[[bin]]
30-
name = "host_call"
30+
name = "fuzz_host_call"
3131
path = "fuzz_targets/host_call.rs"
3232
test = false
3333
doc = false

0 commit comments

Comments
 (0)