Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty SIG* files #94

Closed
kokanin opened this issue Oct 2, 2016 · 1 comment
Closed

empty SIG* files #94

kokanin opened this issue Oct 2, 2016 · 1 comment

Comments

@kokanin
Copy link

kokanin commented Oct 2, 2016

current git version creates empty crash files:
 wc -c SIG*
0 SIGABRT.PC.7ffff6be6198.STACK.2878eff05.CODE.-6.ADDR.(nil).INSTR.cmp____$0xfffffffffffff000,%rax.fuzz
0 SIGSEGV.PC.7ffff7a60afd.STACK.1837a41547.CODE.1.ADDR.0x7fffff7feff8.INSTR.callq__0x0000000000009cab.fuzz
0 SIGSEGV.PC.7ffff7a6321d.STACK.d7f536722.CODE.1.ADDR.0x7fffff7feff8.INSTR.callq__0x000000000000758b.fuzz
0 SIGSEGV.PC.7ffff7aa9962.STACK.1836e5ace.CODE.1.ADDR.0x7fffff7feeb8.INSTR.mov____%rdi,0x28(%rsp).fuzz
0 SIGSEGV.PC.7ffff7ab7f0c.STACK.15f222c5c.CODE.1.ADDR.0x7fffff7fef38.INSTR.mov____%rdx,0x18(%rsp).fuzz
0 SIGSEGV.PC.7ffff7abb1e0.STACK.2bd7616a5.CODE.1.ADDR.0x7fffff7fef88.INSTR.mov____%rdx,(%rsp).fuzz
0 SIGSEGV.PC.7ffff7b978fa.STACK.d2647e.CODE.1.ADDR.0x7fffff7feff8.INSTR.callq__0xffffffffffeb5fc6.fuzz
0 SIGSEGV.PC.7ffff7b9b6bf.STACK.1594f9b8c9.CODE.1.ADDR.0x7fffff7fef38.INSTR.mov____%rdx,-0x2a8(%rbp).fuzz

honggfuzz being invoked like this:
honggfuzz -q -n 10 -f crap/ -c ./external.sh -- /testbinary ___FILE___
external.sh:
#!/bin/bash
filename=`perl -e 'print rand(10);' | cut -d "." -f 2` # $RANDOM collides sometimes
radamsa -r crap/ > $filename
mv $filename $1

0.6 doesn't create the empty files, nor does 0.8.
@robertswiecki
Copy link
Collaborator

I think we should have two commands, one for creation of files, instead of mutators, and one for postprocessing them. So, I introduced --process_cmd (for post-process command).

ee266ac

If you simply want to modify files from the input directory with your command (and not with internal mutators) you might want to set "-r" (mutation max rate) to 0.0.

honggfuzz -r 0.0 --pprocess_cmd ./pprocess.sh -f IN -- /testbinary _FILE_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants