fuzz.go 215 B

1234567891011121314151617
  1. // +build gofuzz
  2. package plist
  3. import (
  4. "bytes"
  5. )
  6. func Fuzz(data []byte) int {
  7. buf := bytes.NewReader(data)
  8. var obj interface{}
  9. if err := NewDecoder(buf).Decode(&obj); err != nil {
  10. return 0
  11. }
  12. return 1
  13. }