diff options
author | Catena cyber <35799796+catenacyber@users.noreply.github.com> | 2018-06-18 16:24:19 +0200 |
---|---|---|
committer | Abhishek Arya <inferno@chromium.org> | 2018-06-18 07:24:19 -0700 |
commit | 105940c2d91280ed0e4d7c3626a5766cc05bb943 (patch) | |
tree | 05cdd4e6b98e2d02bf8dae178dda678f73e0c1d0 /projects | |
parent | 92b7d40f845e62938bde5b5285dbbad67dd99431 (diff) |
Builds capstone corpus automatically (#1527)
* Builds capstone corpus automatically
* Capstone vorpus ugly fix
Diffstat (limited to 'projects')
-rw-r--r-- | projects/capstone/Dockerfile | 2 | ||||
-rwxr-xr-x | projects/capstone/build.sh | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/projects/capstone/Dockerfile b/projects/capstone/Dockerfile index 10b72ed6..8d082000 100644 --- a/projects/capstone/Dockerfile +++ b/projects/capstone/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER capstone.engine@gmail.com -RUN apt-get update && apt-get install -y make cmake +RUN apt-get update && apt-get install -y make cmake python python-setuptools RUN git clone --depth 1 --branch master https://github.com/aquynh/capstone.git capstonemaster RUN git clone --depth 1 --branch next https://github.com/aquynh/capstone.git capstonenext WORKDIR $SRC diff --git a/projects/capstone/build.sh b/projects/capstone/build.sh index c3cb6ab3..a62c447b 100755 --- a/projects/capstone/build.sh +++ b/projects/capstone/build.sh @@ -27,8 +27,14 @@ do cmake -DCAPSTONE_BUILD_SHARED=0 .. make - cd ../suite/fuzz - # TODO corpus + cd ../bindings/python + python setup.py install + cd ../suite + mkdir fuzz/corpus + find MC/ -name *.cs | ./test_corpus.py + cd fuzz + zip -r fuzz_disasm$branch_seed_corpus.zip corpus/ + cp fuzz_disasm$branch_seed_corpus.zip $OUT/ # export other associated stuff cp fuzz_disasm.options $OUT/fuzz_disasm$branch.options |