dlhn
dlhn copied to clipboard
Error when decoding bytes dlhn produced
Hi!
Included in musli is a deterministic fuzzer, one thing it does is generate random datastructures and then tries to pipe them through a serialize / deserialize phase.
I've had to disable dlhn now because it produces bytes that it fails to deserialize:
> cargo run -p musli-tests --bin fuzz --features dlhn -- large
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `target/debug/fuzz large`
serde_dlhn/large: .E
0: error during decode: Read error
0: failing structure written to target/serde_dlhn_error.bin
734.045µs
This is the structure being serialized.
You can check out the project yourself and give the above command a run and you should be able to troubleshoot this yourself.