aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/base-images/base-builder/compile_afl
diff options
context:
space:
mode:
authorGravatar Oliver Chang <oliverchang@users.noreply.github.com>2017-02-16 15:09:37 -0800
committerGravatar GitHub <noreply@github.com>2017-02-16 15:09:37 -0800
commit2e00fe90d193f7cb8ab82ec27e9b37a3ad02956c (patch)
tree3a735af9d9c61d905d5ed0ef94ca21fd8fb8bf0c /infra/base-images/base-builder/compile_afl
parent810b7fe47bf9e54a54ff36944f8860879af9dff2 (diff)
[infra] (experimental) Support building with AFL (#396)
Diffstat (limited to 'infra/base-images/base-builder/compile_afl')
-rw-r--r--infra/base-images/base-builder/compile_afl5
1 files changed, 5 insertions, 0 deletions
diff --git a/infra/base-images/base-builder/compile_afl b/infra/base-images/base-builder/compile_afl
index 27a8d55d..fae25410 100644
--- a/infra/base-images/base-builder/compile_afl
+++ b/infra/base-images/base-builder/compile_afl
@@ -29,5 +29,10 @@ ar r $LIB_FUZZING_ENGINE $WORK/afl/*.o
popd > /dev/null
rm -rf $WORK/afl
+# Copy afl tools necessary for fuzzing.
+pushd $SRC/afl > /dev/null
+make clean && make
+find . -name 'afl-*' -executable -type f | xargs cp -t $OUT
+popd > /dev/null
echo " done."