File: fuzz.go

package info (click to toggle)
golang-github-hydrogen18-stalecucumber 0.0~git20180226.6de214d-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 280 kB
  • sloc: python: 71; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 177 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// +build gofuzz

package stalecucumber

import (
	"bytes"
)

func Fuzz(data []byte) int {
	if _, err := Unpickle(bytes.NewReader(data)); err != nil {
		return 0
	}
	return 1
}