CIFASIS / QuickFuzz

An experimental grammar fuzzer in Haskell using QuickCheck
http://QuickFuzz.org
GNU General Public License v3.0
199 stars 45 forks source link

Remove intermediate files for zzuf and radamsa #40

Closed varnerac closed 8 years ago

varnerac commented 8 years ago

This is an example for piping a binary generated from a grammar directly to the standard input of an external program (fuzzer, ltrace, etc.) rather than write and read an intermediate temp file. I hope this will yield some performance gains.

I am not a Haskell programmer, so forgive the ugliness. This PR relates to https://github.com/CIFASIS/QuickFuzz/issues/38

gaa-cifasis commented 8 years ago

Redone in 357d6d1. I reused some of your code. It is important to keep in mind that encode function can throw arbitrary exceptions for certain types of files, so you cannot use it directly.