1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-05 14:40:54 +00:00
Beego/vendor/github.com/pelletier/go-toml/fuzz.sh

16 lines
291 B
Bash
Raw Normal View History

2018-11-09 04:37:28 +00:00
#! /bin/sh
set -eu
go get github.com/dvyukov/go-fuzz/go-fuzz
go get github.com/dvyukov/go-fuzz/go-fuzz-build
if [ ! -e toml-fuzz.zip ]; then
go-fuzz-build github.com/pelletier/go-toml
fi
rm -fr fuzz
mkdir -p fuzz/corpus
cp *.toml fuzz/corpus
go-fuzz -bin=toml-fuzz.zip -workdir=fuzz