diff --git a/fuzz/dicom_fuzz_test.go b/fuzz/dicom_fuzz_test.go new file mode 100644 index 00000000..04f0dcf4 --- /dev/null +++ b/fuzz/dicom_fuzz_test.go @@ -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) + }) +}