mirror of
https://github.com/bluekeyes/go-gitdiff
synced 2026-06-08 13:18:30 +00:00
265161e7a0
I'm not sure yet if this should remain committed in the repository, but need to checkpoint progress so far so I can resume on another computer.
16 lines
180 B
Go
16 lines
180 B
Go
//go:build gofuzz
|
|
|
|
package gitdiff
|
|
|
|
import (
|
|
"bytes"
|
|
)
|
|
|
|
func Fuzz(data []byte) int {
|
|
r := bytes.NewReader(data)
|
|
if _, _, err := Parse(r); err != nil {
|
|
return 0
|
|
}
|
|
return 1
|
|
}
|