MCPcopy Create free account
hub / github.com/bodgit/sevenzip / FuzzNewReaderWithPassword

Function FuzzNewReaderWithPassword

reader_test.go:437–449  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

435}
436
437func FuzzNewReaderWithPassword(f *testing.F) {
438 b, err := os.ReadFile(filepath.Join("testdata", "copy.7z"))
439 if err != nil {
440 f.Fatal(err)
441 }
442
443 f.Add(b)
444
445 // At this point we only care about preventing the code from panicking
446 f.Fuzz(func(_ *testing.T, data []byte) {
447 _, _ = sevenzip.NewReaderWithPassword(bytes.NewReader(data), int64(len(data)), "")
448 })
449}
450
451func ExampleOpenReader() {
452 r, err := sevenzip.OpenReader(filepath.Join("testdata", "multi.7z.001"))

Callers

nothing calls this directly

Calls 1

NewReaderWithPasswordFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…