tafia / quick-protobuf

A rust implementation of protobuf parser
MIT License
446 stars 82 forks source link

test: add fuzzing to quick-protobuf #210

Open koivunej opened 2 years ago

koivunej commented 2 years ago

single simple fuzz target based on the extensive quick-protobuf/examples/pb_rs' FooMessage.

you will need nightly rust compiler to run the fuzz targets, recommended usage with rustup: cargo +nightly fuzz run foomessage

using this fuzz_target it's quite tricky to reproduce the crashes. I was so far lucky with tracing the method invocations but that is quite a lot of work.