]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
fuzz: added make update command [ci skip]
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 7 Jul 2017 13:43:25 +0000 (15:43 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 7 Jul 2017 13:49:09 +0000 (15:49 +0200)
This allows updating the fuzzer corpus from openssl using a single
command.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
devel/fuzz/Makefile
devel/fuzz/README.md

index 4d1cb1c5b7a091db318b2ac18cb8dbbe01ec1572..1262ac40806f1338747e95ea182b872cb349ca1e 100644 (file)
@@ -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."
index 38e61cc212c8daceb3d0a1e4a0ff269e0c777cec..698db2f4ed012a3216787148773db71999a749d1 100644 (file)
@@ -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