summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-07-07 15:43:25 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-07-07 15:49:09 +0200
commit3f918162903828e7206f8b7deeef87f1c196e2e8 (patch)
tree49dfc9a36ef38dedeb707a875ab137588dbb1aca /devel
parent66bcb22de2ecaa3e7571aa84241e59645bcfa687 (diff)
downloadgnutls-3f918162903828e7206f8b7deeef87f1c196e2e8.tar.gz
fuzz: added make update command [ci skip]
This allows updating the fuzzer corpus from openssl using a single command. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'devel')
-rw-r--r--devel/fuzz/Makefile8
-rw-r--r--devel/fuzz/README.md3
2 files changed, 11 insertions, 0 deletions
diff --git a/devel/fuzz/Makefile b/devel/fuzz/Makefile
index 4d1cb1c5b7..1262ac4080 100644
--- a/devel/fuzz/Makefile
+++ b/devel/fuzz/Makefile
@@ -37,3 +37,11 @@ clean:
gnutls_idna_parser_fuzzer gnutls_reverse_idna_parser_fuzzer gnutls_ocsp_resp_parser_fuzzer \
gnutls_ocsp_req_parser_fuzzer gnutls_base64_decoder_fuzzer \
gnutls_base64_encoder_fuzzer
+
+update:
+ @git clone --depth=1 https://github.com/openssl/openssl openssl.tmp
+ @cp openssl.tmp/fuzz/corpora/x509/* gnutls_x509_parser.in
+ @cp openssl.tmp/fuzz/corpora/server/* gnutls_server.in
+ @cp openssl.tmp/fuzz/corpora/client/* gnutls_client.in
+ @rm -rf openssl.tmp
+ @echo "Updated corpus/trace files. Use git status to identify them and commit them."
diff --git a/devel/fuzz/README.md b/devel/fuzz/README.md
index 38e61cc212..698db2f4ed 100644
--- a/devel/fuzz/README.md
+++ b/devel/fuzz/README.md
@@ -9,6 +9,9 @@ assume they are fuzzers it should run.
The initial values for each parser fuzzer are taken from the $NAME.in
directory.
+The command "make update" will update the stored corpus/traces
+using other projects like openssl.
+
# Running a fuzzer using AFL