aboutsummaryrefslogtreecommitdiff
path: root/projects/cryptofuzz
diff options
context:
space:
mode:
authorGuido Vranken <guidovranken@users.noreply.github.com>2020-10-05 19:25:40 +0200
committerGitHub <noreply@github.com>2020-10-05 10:25:40 -0700
commit0fe19f69cb821408afcce1d5425fbd34b4b74fb4 (patch)
treef307582ed6b384283349ebb87ce4e5aa2bbdc9ce /projects/cryptofuzz
parent0c637b93baecfd626d5b57db9f99162dcfec12f9 (diff)
downloadoss-fuzz-0fe19f69cb821408afcce1d5425fbd34b4b74fb4.tar.gz
[cryptofuzz] Add crypto-js (#4500)
Diffstat (limited to 'projects/cryptofuzz')
-rw-r--r--projects/cryptofuzz/Dockerfile1
-rwxr-xr-xprojects/cryptofuzz/build.sh5
2 files changed, 6 insertions, 0 deletions
diff --git a/projects/cryptofuzz/Dockerfile b/projects/cryptofuzz/Dockerfile
index fc288ae46..2ffe8329f 100644
--- a/projects/cryptofuzz/Dockerfile
+++ b/projects/cryptofuzz/Dockerfile
@@ -54,6 +54,7 @@ RUN wget https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-2.5.0.ta
RUN git clone --depth 1 https://github.com/indutny/bn.js.git
RUN git clone --depth 1 https://github.com/MikeMcl/bignumber.js.git
RUN git clone --depth 1 https://github.com/guidovranken/libfuzzer-js.git
+RUN git clone --depth 1 https://github.com/brix/crypto-js.git
RUN apt-get remove -y libunwind8
RUN apt-get install -y libssl-dev
diff --git a/projects/cryptofuzz/build.sh b/projects/cryptofuzz/build.sh
index 3ef2367f5..878bdd960 100755
--- a/projects/cryptofuzz/build.sh
+++ b/projects/cryptofuzz/build.sh
@@ -83,6 +83,11 @@ then
export CXXFLAGS="$CXXFLAGS -DCRYPTOFUZZ_BIGNUMBER_JS"
cd $SRC/cryptofuzz/modules/bignumber.js/
make
+
+ export CRYPTO_JS_PATH="$SRC/crypto-js/"
+ export CXXFLAGS="$CXXFLAGS -DCRYPTOFUZZ_CRYPTO_JS"
+ cd $SRC/cryptofuzz/modules/crypto-js/
+ make
fi
# Compile NSS