cert-manager: add fuzzer (#12470)

Build a fuzzer that was recently added upstream.

Signed-off-by: Adam Korczynski <adam@adalogics.com>
This commit is contained in:
AdamKorcz 2024-09-10 23:31:11 +01:00 committed by GitHub
parent 8542c7c235
commit a4ff657f96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View File

@ -17,6 +17,17 @@
cp -r $SRC/pki_fuzzer.go $SRC/cert-manager/pkg/util/pki/
cd $SRC
git clone --depth=1 https://github.com/AdamKorcz/go-118-fuzz-build --branch=include-all-test-files
cd go-118-fuzz-build
ls $HOME/go/pkg/mod/github.com/
go build .
mv go-118-fuzz-build /root/go/bin/
cd $SRC/cert-manager
go get github.com/AdamKorcz/go-118-fuzz-build/testing@include-all-test-files
compile_native_go_fuzzer github.com/cert-manager/cert-manager/pkg/controller/certificaterequests/vault FuzzVaultSync FuzzVaultSync
compile_go_fuzzer github.com/cert-manager/cert-manager/pkg/util/pki FuzzUnmarshalSubjectStringToRDNSequence FuzzUnmarshalSubjectStringToRDNSequence
compile_go_fuzzer github.com/cert-manager/cert-manager/pkg/util/pki FuzzDecodePrivateKeyBytes FuzzDecodePrivateKeyBytes