pczarn / gearley

An Earley parser engine in Rust.
http://pczarn.github.io/gearley/gearley/index.html
Apache License 2.0
27 stars 2 forks source link

Fuzz the parser with afl #4

Open pczarn opened 8 years ago

pczarn commented 8 years ago

I didn't take a good look, but fuzzing pointed out one minor mistake. I'll try to fuzz more. I expect using a serialized grammar format will be best. Perhaps the input token string should be over afl's control as well.

pczarn commented 1 month ago

I made a parser fuzzer for contracting work. The solution is taken from this reddit comment https://www.reddit.com/r/ProgrammingLanguages/comments/l0doct/how_to_use_fuzzing_to_test_an_arbitrary/