1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-09 11:51:02 -05:00
v2fly/proxy/vmess/command/testing/fuzzing/accounts_fuzz.go
2016-01-22 21:56:37 +01:00

16 lines
227 B
Go

// +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
}