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

Fuzz #1000

Merged
merged 7 commits into from Aug 29, 2018
Merged

Fuzz #1000

merged 7 commits into from Aug 29, 2018

Conversation

catenacyber
Copy link
Contributor

Integration with oss-fuzz

  • One fuzz target per architecture (buffer is pure x86 or ARM, not with options as done in capstone)
  • Only fuzzes uc_emu_start (seemed relevant)
  • Some minor modification to samples/Makefile to make it work

@catenacyber
Copy link
Contributor Author

Looks ok now.
There is a lot of undefined behaviors...
Any idea on how to generate a corpus ?

@aquynh
Copy link
Member

aquynh commented Aug 27, 2018

great, thanks for doing this again!

any change on this, compared with the pull req to OSSFuzz?

@catenacyber
Copy link
Contributor Author

@aquynh To me, this looks good.
When this gets merged, I can change to main repo in oss-fuzz pull request

@aquynh
Copy link
Member

aquynh commented Aug 28, 2018

what do you think about moving fuzz/ into tests/?

@catenacyber
Copy link
Contributor Author

Good idea :-)

@aquynh aquynh merged commit feb46ab into unicorn-engine:master Aug 29, 2018
@aquynh
Copy link
Member

aquynh commented Aug 29, 2018

merged, thanks!

please add your name to https://github.com/unicorn-engine/unicorn/blob/master/CREDITS.TXT, too.

This was referenced Aug 29, 2018
chfl4gs pushed a commit to chfl4gs/unicorn that referenced this pull request Apr 7, 2020
* Integration with oss-fuzz

* Use CFLAGS even for linking

as for fuzzing with asan

* Do not abort on uc_emu_start error

* Redirect fuzz output somewhere else than stdout

* Use uc_open for every fuzz instance

* Avoids timeouts from infinite loops

Limiting the number of instructions

* Moving fuzz to tests directory
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

Successfully merging this pull request may close these issues.

None yet

2 participants