Skip to content

Commit

Permalink
[fuzz general]: update makefile for new fuzzer cli args
Browse files Browse the repository at this point in the history
  • Loading branch information
robertDurst committed Aug 23, 2019
1 parent 05f314e commit c2cd2fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,18 @@ format: always
endif # USE_CLANG_FORMAT

if USE_AFL_FUZZ
FUZZER_MODE ?= overlay

fuzz-testcases: stellar-core
mkdir -p fuzz-testcases
for i in `seq 1 10`; do \
./stellar-core gen-fuzz fuzz-testcases/fuzz$$i.xdr; \
./stellar-core gen-fuzz fuzz-testcases/fuzz$$i.xdr --mode=${FUZZER_MODE}; \
done

fuzz: fuzz-testcases stellar-core
mkdir -p fuzz-findings
afl-fuzz -m 8000 -t 250 -i fuzz-testcases -o fuzz-findings \
./stellar-core fuzz @@
./stellar-core fuzz @@ --mode=${FUZZER_MODE}

fuzz-clean: always
rm -Rf fuzz-testcases fuzz-findings
Expand Down

5 comments on commit c2cd2fc

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

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

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

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

merging robertDurst/stellar-core/transaction-fuzzing = c2cd2fc into auto

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

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

robertDurst/stellar-core/transaction-fuzzing = c2cd2fc merged ok, testing candidate = e6e680c

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

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

@latobarita
Copy link
Contributor

Choose a reason for hiding this comment

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

fast-forwarding master to auto = e6e680c

Please sign in to comment.