Refresh corpora due to TLS 1.3 changes in handoff serialization. Along the way, update |refresh_ssl_corpora.sh| to use the right handshaker path. How to: (rm -rf build-fuzz && mkdir build-fuzz && cd build-fuzz && CC=clang CXX=clang++ cmake -GNinja -DFUZZ=1 .. && ninja all) (rm -rf build-no-fuzzer-mode && mkdir build-no-fuzzer-mode && cd build-no-fuzzer-mode && CC=clang CXX=clang++ cmake -GNinja -DFUZZ=1 -DNO_FUZZER_MODE=1 .. && ninja all) (cd ~/boringssl/fuzz && ../fuzz/refresh_ssl_corpora.sh ../build-fuzz ../build-no-fuzzer-mode ) 2>&1 | tee /tmp/refresh-log Change-Id: I1115dfe45d25bd74ace1048c80d614afb26223ee Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/39805 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: Matt Braithwaite <mab@google.com>
diff --git a/fuzz/refresh_ssl_corpora.sh b/fuzz/refresh_ssl_corpora.sh index d49f574..cbc5e87 100755 --- a/fuzz/refresh_ssl_corpora.sh +++ b/fuzz/refresh_ssl_corpora.sh
@@ -70,12 +70,18 @@ no_fuzzer_mode_shim=$(readlink -f \ "$no_fuzzer_mode_build_dir/ssl/test/bssl_shim") +fuzzer_mode_handshaker=$(readlink -f \ + "$fuzzer_mode_build_dir/ssl/test/handshaker") +no_fuzzer_mode_handshaker=$(readlink -f \ + "$no_fuzzer_mode_build_dir/ssl/test/handshaker") + fuzzer_mode_transcripts=$(mktemp -d '/tmp/boringssl-transcript-fuzzer-mode.XXXXXX') no_fuzzer_mode_transcripts=$(mktemp -d '/tmp/boringssl-transcript-no-fuzzer-mode.XXXXXX') echo Recording fuzzer-mode transcripts (cd ../ssl/test/runner/ && go test \ -shim-path "$fuzzer_mode_shim" \ + -handshaker-path "$fuzzer_mode_handshaker" \ -transcript-dir "$fuzzer_mode_transcripts" \ -fuzzer \ -deterministic) || true @@ -83,6 +89,7 @@ echo Recording non-fuzzer-mode transcripts (cd ../ssl/test/runner/ && go test \ -shim-path "$no_fuzzer_mode_shim" \ + -handshaker-path "$no_fuzzer_mode_handshaker" \ -transcript-dir "$no_fuzzer_mode_transcripts" \ -deterministic)