Simple fuzzer for ParseEventLog

This commit is contained in:
Brandon Weeks 2019-10-08 04:38:05 +00:00
parent de6a3af7e4
commit 59a5f6851d
5 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,5 @@
// +build !cgo
package attest
import (

View File

@ -12,7 +12,7 @@
// License for the specific language governing permissions and limitations under
// the License.
// +build linux
// +build linux !cgo
package attest

View File

@ -12,7 +12,7 @@
// License for the specific language governing permissions and limitations under
// the License.
// +build windows
// +build windows !cgo
package attest

11
attest/test/fuzz.go Normal file
View File

@ -0,0 +1,11 @@
package test
import (
"github.com/google/go-attestation/attest"
)
func FuzzParseEventLog(data []byte) int {
attest.ParseEventLog(data)
return 0
}

View File

@ -12,7 +12,7 @@
// License for the specific language governing permissions and limitations under
// the License.
// +build linux
// +build linux !cgo
package attest