MCPcopy Create free account
hub / github.com/crewjam/saml / Fuzz

Function Fuzz

xmlenc/fuzz.go:36–49  ·  view source on GitHub ↗

Fuzz is the go-fuzz fuzzing function

(data []byte)

Source from the content-addressed store, hash-verified

34
35// Fuzz is the go-fuzz fuzzing function
36func Fuzz(data []byte) int {
37 doc := etree.NewDocument()
38 if err := doc.ReadFromBytes(data); err != nil {
39 return 0
40 }
41 if doc.Root() == nil {
42 return 0
43 }
44
45 if _, err := Decrypt(testKey, doc.Root()); err != nil {
46 return 0
47 }
48 return 1
49}

Callers 1

TestPastFuzzingFailuresFunction · 0.85

Calls 1

DecryptFunction · 0.85

Tested by 1

TestPastFuzzingFailuresFunction · 0.68