aboutsummaryrefslogtreecommitdiff
path: root/projects/wolfssl
diff options
context:
space:
mode:
authorGuido Vranken <guidovranken@users.noreply.github.com>2020-09-22 20:33:27 +0200
committerGitHub <noreply@github.com>2020-09-22 11:33:27 -0700
commitc21680d8353f1df4b92f23b735f8d252444eeefb (patch)
tree19399fd33a3f690983bfc3a156d3807c64e34075 /projects/wolfssl
parent25e212436a970b74785ccafaecc7b10d58422600 (diff)
downloadoss-fuzz-c21680d8353f1df4b92f23b735f8d252444eeefb.tar.gz
[wolfssl] Add more wolfSSL and wolfSSH fuzzers (#4468)
* [wolfssl] Add more wolfSSL and wolfSSH fuzzers * [wolfssl] Don't build new fuzzers with dataflow Same issue as https://github.com/google/oss-fuzz/issues/4402 Try again after that issue is resolved.
Diffstat (limited to 'projects/wolfssl')
-rw-r--r--projects/wolfssl/Dockerfile3
-rwxr-xr-xprojects/wolfssl/build.sh9
-rw-r--r--projects/wolfssl/project.yaml1
3 files changed, 13 insertions, 0 deletions
diff --git a/projects/wolfssl/Dockerfile b/projects/wolfssl/Dockerfile
index 12742e1a1..adebc4ae0 100644
--- a/projects/wolfssl/Dockerfile
+++ b/projects/wolfssl/Dockerfile
@@ -18,6 +18,9 @@ FROM gcr.io/oss-fuzz-base/base-builder
RUN apt-get update && apt-get install -y make autoconf automake libtool zip
RUN git clone https://github.com/wolfssl/wolfssl --depth 1 $SRC/wolfssl
+RUN git clone --depth 1 https://github.com/wolfSSL/wolfssh.git
+RUN git clone --depth 1 https://github.com/guidovranken/fuzzing-headers.git
+RUN git clone --depth 1 https://github.com/guidovranken/wolf-ssl-ssh-fuzzers
RUN git clone https://github.com/wolfssl/oss-fuzz-targets --depth 1 $SRC/fuzz-targets
WORKDIR wolfssl
diff --git a/projects/wolfssl/build.sh b/projects/wolfssl/build.sh
index 16606125d..acf435c66 100755
--- a/projects/wolfssl/build.sh
+++ b/projects/wolfssl/build.sh
@@ -15,6 +15,15 @@
#
################################################################################
+if [[ $CFLAGS != *sanitize=dataflow* ]]
+then
+ NEW_SRC=$SRC/wolf-ssl-ssh-fuzzers/oss-fuzz/projects/wolf-ssl-ssh/
+ cp -R $SRC/wolfssl/ $NEW_SRC
+ cp -R $SRC/wolfssh/ $NEW_SRC
+ cp -R $SRC/fuzzing-headers/ $NEW_SRC
+ OSS_FUZZ_BUILD=1 SRC="$NEW_SRC" $NEW_SRC/build.sh
+fi
+
# target_dir determined by Dockerfile
target_dir="$SRC/fuzz-targets"
diff --git a/projects/wolfssl/project.yaml b/projects/wolfssl/project.yaml
index f691d72f1..bda941e3a 100644
--- a/projects/wolfssl/project.yaml
+++ b/projects/wolfssl/project.yaml
@@ -7,6 +7,7 @@ auto_ccs:
- "kaleb.himes@gmail.com"
- "levi@wolfssl.com"
- "testing@wolfssl.com"
+ - "guidovranken@gmail.com"
fuzzing_engines:
- libfuzzer
- afl