Skip to content

Commit

Permalink
helm: add fuzzer for provenance unmarshalling
Browse files Browse the repository at this point in the history
Signed-off-by: AdamKorcz <adam@adalogics.com>
  • Loading branch information
AdamKorcz committed Jan 3, 2023
1 parent 8a68186 commit fcb2229
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit fcb2229

Please sign in to comment.