mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-09 11:51:02 -05:00
16 lines
227 B
Go
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
|
|
}
|