Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm: add fuzzer for provenance unmarshalling #1243

Merged
merged 1 commit into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pkg/types/helm/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package helm

import (
"bytes"
"context"
"testing"

Expand All @@ -40,3 +41,11 @@ func FuzzHelmCreateProposedEntry(f *testing.F) {
}
})
}

func FuzzHelmProvenanceUnmarshal(f *testing.F) {
f.Fuzz(func(t *testing.T, provenanceData []byte) {
p := &Provenance{}
r := bytes.NewReader(provenanceData)
p.Unmarshal(r)
})
}
1 change: 1 addition & 0 deletions tests/oss_fuzz.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ compile_native_go_fuzzer github.com/sigstore/rekor/pkg/types/tuf FuzzTufCreatePr
compile_native_go_fuzzer github.com/sigstore/rekor/pkg/types/rfc3161 FuzzRfc3161CreateProposedEntry FuzzRfc3161CreateProposedEntry
compile_native_go_fuzzer github.com/sigstore/rekor/pkg/types/rpm FuzzRpmCreateProposedEntry FuzzRpmCreateProposedEntry
compile_native_go_fuzzer github.com/sigstore/rekor/pkg/types/helm FuzzHelmCreateProposedEntry FuzzHelmCreateProposedEntry
compile_native_go_fuzzer github.com/sigstore/rekor/pkg/types/helm FuzzHelmProvenanceUnmarshal FuzzHelmProvenanceUnmarshal
compile_native_go_fuzzer github.com/sigstore/rekor/pkg/types/rekord FuzzRekordCreateProposedEntry FuzzRekordCreateProposedEntry