MCPcopy
hub / github.com/containerd/containerd / FuzzImagesCheck

Function FuzzImagesCheck

contrib/fuzz/images_fuzz_test.go:30–45  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

28)
29
30func FuzzImagesCheck(f *testing.F) {
31 f.Fuzz(func(t *testing.T, data []byte) {
32 f := fuzz.NewConsumer(data)
33 desc := ocispec.Descriptor{}
34 err := f.GenerateStruct(&desc)
35 if err != nil {
36 return
37 }
38 tmpDir := t.TempDir()
39 cs, err := local.NewStore(tmpDir)
40 if err != nil {
41 return
42 }
43 _, _, _, _, _ = images.Check(context.Background(), cs, desc, platforms.Default())
44 })
45}

Callers

nothing calls this directly

Calls 2

NewStoreFunction · 0.92
CheckFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…