mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-08-06 23:20:55 -04:00
more fuzz test
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// +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
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user