feat: pumpkin-protocol: add fuzzing

actually found some issues
This commit is contained in:
Alexander Medvedev committed 2026-02-22 15:24:36 +01:00
1 parent 125afc7f14
commit bc205d2683
8 files changed
+323 -56

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
[package]
name = "pumpkin-protocol-fuzz"
version = "0.0.0"
publish = false
edition = "2024"
# IMPORTANT: disable lto when running
# CARGO_PROFILE_RELEASE_LTO=false cargo +nightly fuzz run decoder
[package.metadata]
cargo-fuzz = true
[dependencies]
tokio = { version = "1", features = ["full"] }
libfuzzer-sys = "0.4"
[dependencies.pumpkin-protocol]
path = ".."
[[bin]]
name = "decoder_java"
path = "fuzz_targets/decoder_java.rs"
test = false
doc = false
bench = false