Skip to content

Latest commit

 

History

History
51 lines (24 loc) · 1.5 KB

README.md

File metadata and controls

51 lines (24 loc) · 1.5 KB

Automating fuzzing using libFuzzer.

Example usage:

Fuzzing main

             from dofuzz import *

             ob = dofuzz('/home/foo/source', 'subdir/filename.c', '../libFuzzer.a')

Fuzzing arbitrary function

             from dofuzz import *

             ob = dofuzz('/home/foo/source', 'subdir/filename.c', '../libFuzzer.a',
                         use_default=False, prototype='int blah(int, char*)')

Example fuzzing binutils/objdump from main

	from dofuzz import *

	ob = dofuzz('~/binutils-2.29', 'binutils/objdump.c', 'objdump', '../libFuzzer.a')

Alt text


Example fuzzing ar_open from binutils/arsup.c

	from dofuzz import *

	ob = dofuzz('~/binutils-2.29', 'binutils/ar.c', 'ar', '../libFuzzer.a',
	            use_default=False, prototype='void ar_open(char *name, int t)')

Alt text