mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
account fuzz test
This commit is contained in:
parent
c61cd2cf8f
commit
9ec238d161
11
proxy/vmess/command/accounts_fuzz.go
Normal file
11
proxy/vmess/command/accounts_fuzz.go
Normal file
@ -0,0 +1,11 @@
|
||||
// +build gofuzz
|
||||
|
||||
package command
|
||||
|
||||
func Fuzz(data []byte) int {
|
||||
cmd := new(SwitchAccount)
|
||||
if err := cmd.Unmarshal(data); err != nil {
|
||||
return 0
|
||||
}
|
||||
return 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user