1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-10 21:19:10 -04:00
Files
v2fly/proxy/vmess/command/testing/fuzzing/accounts_fuzz.go

16 lines
227 B
Go
Raw Normal View History

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