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

lesson 08: no interesting inputs found #1

Closed
juneJuly opened this issue Jun 6, 2017 · 3 comments
Closed

lesson 08: no interesting inputs found #1

juneJuly opened this issue Jun 6, 2017 · 3 comments

Comments

@juneJuly
Copy link

juneJuly commented Jun 6, 2017

when i run xml_read_memory_fuzzer in lesson 08 , i got error like this:
'''
08$ ./xml_read_memory_fuzzer -max_total_time=300 -print_final_stats=1 corpus1
INFO: Seed: 1486712041
INFO: Loaded 0 modules (0 guards):
Loading corpus dir: corpus1
INFO: -max_len is not provided, using 64
INFO: A corpus is not provided, starting from an empty corpus
#0 READ units: 1
#1 INITED exec/s: 0 rss: 31Mb
ERROR: no interesting inputs were found. Is the code instrumented for coverage? Exiting.
'''

did i missed something?
any suggestion?

@quangnh89
Copy link

quangnh89 commented Jun 6, 2017

I think you should change FUZZ_CXXFLAGS a little bit. Lastest version of Clang supports trace-pc-guard flag. The compiler will insert instrumentation code on every edge. 8bit-counters and trace-pc-guard can not combine together.
Try it:

export FUZZ_CXXFLAGS="-O2 -fno-omit-frame-pointer -g -fsanitize=address \
    -fsanitize-coverage=edge,trace-pc-guard,indirect-calls,trace-cmp,trace-div,trace-gep"

@juneJuly
Copy link
Author

juneJuly commented Jun 6, 2017

@quangnh89
thank u very much , that works very well.
an u make everything clearly.

Dor1s added a commit that referenced this issue Jul 23, 2017
@Dor1s
Copy link
Owner

Dor1s commented Jul 23, 2017

Thanks @quangnh89 !

@Dor1s Dor1s closed this as completed Jul 23, 2017
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

3 participants