[quic-go] add fuzz targets for tokens, generate seed corpora (#4365)

* [quic-go] add a fuzz target for tokens

* [quic-go] generate seed corpora in build script
This commit is contained in:
Marten Seemann 2020-08-26 07:10:09 +07:00 committed by GitHub
parent 2d83cb1bb3
commit 164cc93088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -36,3 +36,14 @@ compile_fuzzer github.com/marten-seemann/qpack/fuzzing Fuzz qpack_fuzzer
compile_fuzzer github.com/lucas-clemente/quic-go/fuzzing/frames Fuzz frame_fuzzer compile_fuzzer github.com/lucas-clemente/quic-go/fuzzing/frames Fuzz frame_fuzzer
compile_fuzzer github.com/lucas-clemente/quic-go/fuzzing/header Fuzz header_fuzzer compile_fuzzer github.com/lucas-clemente/quic-go/fuzzing/header Fuzz header_fuzzer
compile_fuzzer github.com/lucas-clemente/quic-go/fuzzing/transportparameters Fuzz transportparameter_fuzzer compile_fuzzer github.com/lucas-clemente/quic-go/fuzzing/transportparameters Fuzz transportparameter_fuzzer
compile_fuzzer github.com/lucas-clemente/quic-go/fuzzing/tokens Fuzz token_fuzzer
# generate seed corpora
go generate $GOPATH/src/github.com/lucas-clemente/quic-go/fuzzing/...
zip --quiet -r $OUT/header_fuzzer_seed_corpus.zip $GOPATH/src/github.com/lucas-clemente/quic-go/fuzzing/header/corpus
zip --quiet -r $OUT/frame_fuzzer_seed_corpus.zip $GOPATH/src/github.com/lucas-clemente/quic-go/fuzzing/frames/corpus
zip --quiet -r $OUT/transportparameter_fuzzer_seed_corpus.zip $GOPATH/src/github.com/lucas-clemente/quic-go/fuzzing/transportparameters/corpus
# for debugging
ls -al $OUT