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

Function TestPastFuzzingFailures

xmlenc/fuzz_test.go:13–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestPastFuzzingFailures(t *testing.T) {
14 entries, err := ioutil.ReadDir("crashers")
15 if err != nil {
16 t.Errorf("%s", err)
17 return
18 }
19 for _, entry := range entries {
20 if strings.HasSuffix(entry.Name(), ".output") {
21 continue
22 }
23 if strings.HasSuffix(entry.Name(), ".quoted") {
24 continue
25 }
26 t.Logf("%s", entry.Name())
27 data, err := ioutil.ReadFile("crashers/" + entry.Name())
28 if err != nil {
29 t.Errorf("%s: %s", entry.Name(), err)
30 return
31 }
32 Fuzz(data)
33 }
34}

Callers

nothing calls this directly

Calls 1

FuzzFunction · 0.85

Tested by

no test coverage detected