Skip to content

Commit

Permalink
Add Fuzz test
Browse files Browse the repository at this point in the history
  • Loading branch information
jesslatimer committed Jan 26, 2023
1 parent b667091 commit 8e908cc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions fuzz/dicom_fuzz_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package fuzz

import (
"bytes"
"testing"

"github.com/suyashkumar/dicom"
)

func FuzzDICOMParse(f *testing.F) {
f.Fuzz(func(t *testing.T, test_file []byte) {
reader := bytes.NewReader(test_file)
_, _ = dicom.Parse(reader, int64(len(test_file)), nil)
})
}

0 comments on commit 8e908cc

Please sign in to comment.