Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

How do I get the standard output of the program being tested? #71

Closed
NikParam42 opened this issue Jan 31, 2020 · 1 comment
Closed

How do I get the standard output of the program being tested? #71

NikParam42 opened this issue Jan 31, 2020 · 1 comment

Comments

@NikParam42
Copy link

NikParam42 commented Jan 31, 2020

Hi! Tell me please
How do I access stderr stdout of the program we are testing?

I compiled my program this way (using memory sanitizer):

afl-gcc -fsaninite=address -g main.c -o myprog

Next, I run the fuzzer, but how do I get stderr myprog ??

@jonathanmetzman
Copy link
Contributor

You need to modify the program to output stdout and stderr to a location you desire.
afl_driver.cpp does this.

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

No branches or pull requests

2 participants