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

fuzzing: add call to IndexKeys in multiple fuzzers #1302

Merged
merged 1 commit into from
Jan 27, 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
3 changes: 2 additions & 1 deletion pkg/types/helm/v0.0.1/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ func FuzzHelmCreateProposedEntry(f *testing.F) {
if err != nil {
t.Skip()
}
_, err = it.UnmarshalEntry(entry)
c, err := it.UnmarshalEntry(entry)
if err != nil {
t.Skip()
}
_, _ = c.IndexKeys()
})
}

Expand Down
3 changes: 2 additions & 1 deletion pkg/types/intoto/v0.0.1/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ func FuzzIntotoCreateProposedEntry(f *testing.F) {
if err != nil {
t.Skip()
}
_, err = it.UnmarshalEntry(entry)
c, err := it.UnmarshalEntry(entry)
if err != nil {
t.Skip()
}
_, _ = c.IndexKeys()
})
}
3 changes: 2 additions & 1 deletion pkg/types/intoto/v0.0.2/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ func FuzzIntotoCreateProposedEntry(f *testing.F) {
if err != nil {
t.Skip()
}
_, err = it.UnmarshalEntry(entry)
c, err := it.UnmarshalEntry(entry)
if err != nil {
t.Skip()
}
_, _ = c.IndexKeys()
})
}
3 changes: 2 additions & 1 deletion pkg/types/rekord/v0.0.1/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ func FuzzRekordCreateProposedEntry(f *testing.F) {
if err != nil {
t.Skip()
}
_, err = it.UnmarshalEntry(entry)
c, err := it.UnmarshalEntry(entry)
if err != nil {
t.Skip()
}
_, _ = c.IndexKeys()
})
}
3 changes: 2 additions & 1 deletion pkg/types/rfc3161/v0.0.1/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ func FuzzRfc3161CreateProposedEntry(f *testing.F) {
if err != nil {
t.Skip()
}
_, err = it.UnmarshalEntry(entry)
c, err := it.UnmarshalEntry(entry)
if err != nil {
t.Skip()
}
_, _ = c.IndexKeys()
})
}
3 changes: 2 additions & 1 deletion pkg/types/rpm/v0.0.1/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ func FuzzRpmCreateProposedEntry(f *testing.F) {
if err != nil {
t.Skip()
}
_, err = it.UnmarshalEntry(entry)
c, err := it.UnmarshalEntry(entry)
if err != nil {
t.Skip()
}
_, _ = c.IndexKeys()
})
}
3 changes: 2 additions & 1 deletion pkg/types/tuf/v0.0.1/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ func FuzzTufCreateProposedEntry(f *testing.F) {
if err != nil {
t.Skip()
}
_, err = it.UnmarshalEntry(entry)
c, err := it.UnmarshalEntry(entry)
if err != nil {
t.Skip()
}
_, _ = c.IndexKeys()
})
}