File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -189,19 +189,23 @@ bench-ci baseline target=default-target features="":
189
189
bench target = default-target features = " ":
190
190
cargo bench --profile={{ if target == " debug" { " dev" } else { target } }} {{ if features == " " {' ' } else { " --features " + features } }} -- --verbose
191
191
192
+ #####################################
192
193
# FUZZING
194
+ #####################################
195
+
196
+ fuzz_memory_limit := " 4096"
193
197
194
198
# Fuzzes the given target
195
199
fuzz fuzz -target :
196
- cargo + nightly fuzz run {{ fuzz-target }} --release
200
+ cargo + nightly fuzz run {{ fuzz-target }} --release -- -rss_limit_mb= {{ fuzz_memory_limit }}
197
201
198
202
# Fuzzes the given target. Stops after `max_time` seconds
199
203
fuzz-timed fuzz -target max_time :
200
- cargo + nightly fuzz run {{ fuzz-target }} --release -- -max_total_time={{ max_time }}
204
+ cargo + nightly fuzz run {{ fuzz-target }} --release -- -rss_limit_mb= {{ fuzz_memory_limit }} - max_total_time={{ max_time }}
201
205
202
206
# Builds fuzzers for submission to external fuzzing services
203
207
build-fuzzers : (build-fuzzer " fuzz_guest_call" ) (build-fuzzer " fuzz_host_call" ) (build-fuzzer " fuzz_host_print" )
204
208
205
209
# Builds the given fuzzer
206
210
build-fuzzer fuzz -target :
207
- cargo + nightly fuzz build {{ fuzz-target }} --release -s none
211
+ cargo + nightly fuzz build {{ fuzz-target }} --release
You can’t perform that action at this time.
0 commit comments