MCPcopy
hub / github.com/containerd/containerd / createContainerFuzz

Function createContainerFuzz

contrib/fuzz/cri_server_fuzz_test.go:183–193  ·  view source on GitHub ↗

createContainerFuzz creates a CreateContainerRequest and passes it to c.CreateContainer

(c fuzzCRIService, f *fuzz.ConsumeFuzzer)

Source from the content-addressed store, hash-verified

181// createContainerFuzz creates a CreateContainerRequest and passes
182// it to c.CreateContainer
183func createContainerFuzz(c fuzzCRIService, f *fuzz.ConsumeFuzzer) error {
184 r := &runtime.CreateContainerRequest{}
185 err := f.GenerateStruct(r)
186 if err != nil {
187 return err
188 }
189 _, _ = c.CreateContainer(context.Background(), r)
190 reqString := fmt.Sprintf("%+v", r)
191 logExecution("c.CreateContainer", reqString)
192 return nil
193}
194
195// removeContainerFuzz creates a RemoveContainerRequest and passes
196// it to c.RemoveContainer

Callers

nothing calls this directly

Calls 2

logExecutionFunction · 0.85
CreateContainerMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…