aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/fuzz
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-01-12 09:38:47 -1030
committermat <git@matdoes.dev>2026-01-13 01:08:53 +0500
commitefb36d5fc0fe56a98f5795c53dfa109887cd5aae (patch)
tree3674f0b53afca4b3f1d58fc0406bcbac552ab961 /azalea-protocol/fuzz
parent2310666975d0f7e06f44efa6032c6838f2a33f0c (diff)
downloadazalea-drasl-efb36d5fc0fe56a98f5795c53dfa109887cd5aae.tar.xz
fix memory leaks in azalea-protocol
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/
```