diff options
author | Catena cyber <35799796+catenacyber@users.noreply.github.com> | 2021-03-22 02:54:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 18:54:01 -0700 |
commit | 856b16fb937f4c187fe2f72d5518336ffa786815 (patch) | |
tree | 1649cae98b57191fe724c37c01024836942c300c | |
parent | 6ca344a44647fe3087d98e0f8c2a545f8285cca5 (diff) | |
download | oss-fuzz-856b16fb937f4c187fe2f72d5518336ffa786815.tar.gz |
Capstone: do not use flags for corpus building (#5464)
* Capstone: do not use flags for corpus building
* No corpus generation with afl for capstone
-rwxr-xr-x | projects/capstone/build.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/projects/capstone/build.sh b/projects/capstone/build.sh index 35720ea09..1d49af92c 100755 --- a/projects/capstone/build.sh +++ b/projects/capstone/build.sh @@ -25,13 +25,15 @@ do # + make.sh overwrites CFLAGS cd build cmake -DCAPSTONE_BUILD_SHARED=0 .. - make + make -j$(nproc) +if [ "$FUZZING_ENGINE" != 'afl' ]; then cd $SRC/capstone$branch/bindings/python #better debug info sed -i -e 's/#print/print/' capstone/__init__.py ( export CFLAGS="" + export CXXFLAGS="" python setup.py install ) cd $SRC/capstone$branch/suite @@ -45,6 +47,7 @@ do cp fuzz_disasm.options $OUT/fuzz_disasm$branch.options cd ../../build +fi # build fuzz target FUZZO=CMakeFiles/fuzz_disasm.dir/suite/fuzz/fuzz_disasm.c.o if [ -f CMakeFiles/fuzz_disasm.dir/suite/fuzz/platform.c.o ]; then |