mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-07 04:13:05 +02:00
* Bump github.com/docker/docker to latest release * Pin deps to docker/docker's requirements fix build breakages fix unit test Trying to see whether am-i-in-a-container checks are broken for integration tests...
22 lines
347 B
Go
22 lines
347 B
Go
// +build gofuzz
|
|
|
|
// Use with https://github.com/dvyukov/go-fuzz
|
|
|
|
package ebpf
|
|
|
|
import "bytes"
|
|
|
|
func FuzzLoadCollectionSpec(data []byte) int {
|
|
spec, err := LoadCollectionSpecFromReader(bytes.NewReader(data))
|
|
if err != nil {
|
|
if spec != nil {
|
|
panic("spec is not nil")
|
|
}
|
|
return 0
|
|
}
|
|
if spec == nil {
|
|
panic("spec is nil")
|
|
}
|
|
return 1
|
|
}
|