Skip to content

Commit

Permalink
Add Fuzz test (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesslatimer authored Jan 28, 2023
1 parent b667091 commit d736099
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 d736099

Please sign in to comment.