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

Fuzzing docs and makefile update #2246

Merged
merged 3 commits into from
Aug 27, 2019
Merged

Fuzzing docs and makefile update #2246

merged 3 commits into from
Aug 27, 2019

Conversation

robertDurst
Copy link
Contributor

Description

Following #2182 , this updates the fuzzing.md doc with what I have learned and the updates I have made. This also updates the shell script so that we generate a lot of inputs and then minimize them with afl-cmin.

@robertDurst robertDurst marked this pull request as ready for review August 23, 2019 18:31
docs/fuzzing.md Outdated
the former is incompatible, and the latter doesn't interoperate with the
compiler wrappers.
Start with a clean workspace, `make clean` or cleaner; enable a few compilation flags **WHICH SHOULD
NEVER BE ENABLED IN PRODUCTION**: `FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION` and `AFL_LLVM_MODE`; and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure about this? FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION seems to be set automatically by afl.

As for AFL_LLVM_MODE, if it's not automatically set, we should just set it when configuring with --enable-afl in the configure script

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thanks for pointing this out. Did not realize FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION was set, but see it here.

Will add set AFL_LLVM_MODE as part of the configure script.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@robertDurst
Copy link
Contributor Author

Removed part about setting AFL related env vars as, mentioned above, those are set by either afl or as part of ./configure --enable-afl. Should be good to go now as long as the changes in fuzzing.md makes sense.

@MonsieurNicolas
Copy link
Contributor

r+ 385bd0e

latobarita added a commit that referenced this pull request Aug 27, 2019
Fuzzing docs and makefile update

Reviewed-by: MonsieurNicolas
@latobarita latobarita merged commit 385bd0e into stellar:master Aug 27, 2019
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

3 participants