1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-12 15:27:16 -05:00
v2fly/proxy/vmess/command/testing/fuzzing/accounts_fuzz.go

16 lines
227 B
Go
Raw Normal View History

2016-01-22 11:55:03 -05:00
// +build gofuzz
2016-01-22 15:56:37 -05:00
package fuzzing
import (
. "github.com/v2ray/v2ray-core/proxy/vmess/command"
)
2016-01-22 11:55:03 -05:00
func Fuzz(data []byte) int {
cmd := new(SwitchAccount)
if err := cmd.Unmarshal(data); err != nil {
return 0
}
return 1
}