more fuzz test

This commit is contained in:
v2ray
2016-01-22 21:56:37 +01:00
parent 42b4764700
commit 73c17d9931
3 changed files with 6 additions and 2 deletions
@@ -0,0 +1,15 @@
// +build gofuzz
package fuzzing
import (
. "github.com/v2ray/v2ray-core/proxy/vmess/command"
)
func Fuzz(data []byte) int {
cmd := new(SwitchAccount)
if err := cmd.Unmarshal(data); err != nil {
return 0
}
return 1
}