miller icon indicating copy to clipboard operation
miller copied to clipboard

instrument for afl?

Open jungle-boogie opened this issue 10 years ago • 3 comments

Hello,

Would there be any benefit to run afl against the mlr binary? http://lcamtuf.coredump.cx/afl/

jungle-boogie avatar Sep 02 '15 03:09 jungle-boogie

This is a basic example using tcpdump: http://volatileminds.net/2015/06/29/basic-afl-usage.html

I don't see anything pertaining to afl when I do CC=/usr/local/bin/afl-gcc; make and there's no ./configure file so that's not going to work, but this gives a basic example to get started.

The readme is also useful: http://lcamtuf.coredump.cx/afl/README.txt

jungle-boogie avatar Sep 02 '15 03:09 jungle-boogie

this is a good idea. ./configure on https://github.com/johnkerl/miller/issues/9 which is kind of stalled out right now but should be done in the medium term.

johnkerl avatar Sep 04 '15 00:09 johnkerl

There are some issues to deal with:

  • exit code needs to be changed to 0 (easy, it is just to conform afl convention)
  • if we don't want to test each command (with input/output/flags) combination separately there is need to wrap them and read arguments from stdin instead of command line (char **agrv). After some separator usual input will follow.

Komosa avatar Oct 11 '15 11:10 Komosa