aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/fuzz
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/fuzz')
-rw-r--r--azalea-protocol/fuzz/.gitignore2
-rw-r--r--azalea-protocol/fuzz/README.md6
2 files changed, 6 insertions, 2 deletions
diff --git a/azalea-protocol/fuzz/.gitignore b/azalea-protocol/fuzz/.gitignore
index 1a45eee7..7a68a04b 100644
--- a/azalea-protocol/fuzz/.gitignore
+++ b/azalea-protocol/fuzz/.gitignore
@@ -2,3 +2,5 @@ target
corpus
artifacts
coverage
+
+fuzz-*.log \ No newline at end of file
diff --git a/azalea-protocol/fuzz/README.md b/azalea-protocol/fuzz/README.md
index df18e8ea..28b1cf4b 100644
--- a/azalea-protocol/fuzz/README.md
+++ b/azalea-protocol/fuzz/README.md
@@ -11,11 +11,13 @@ Additionally, you should be aware that this fuzzer only targets `azalea-protocol
```sh
cargo install cargo-fuzz
-cargo fuzz run clientbound_game -s none -- -rss_limit_mb=16384
+cargo fuzz run clientbound_game -s none -- -rss_limit_mb=16384 -malloc_limit_mb=1024
# other valid targets: {clientbound,serverbound}_{config,game,handshake,login,status}
# note: the rss_limit_mb is increased (from the default of 2048) so libfuzzer
# doesn't oom due to the branchiness of the code :(
-# also see https://appsec.guide/docs/fuzzing/rust/cargo-fuzz/#addresssanitizer
+# also, the `-s none` is there for increased performance, but at the cost of catching less bugs. feel free to remove it.
+
+# also see https://appsec.guide/docs/fuzzing/rust/cargo-fuzz/
```