Ver código fonte

account fuzz test

v2ray 9 anos atrás
pai
commit
9ec238d161
1 arquivos alterados com 11 adições e 0 exclusões
  1. 11 0
      proxy/vmess/command/accounts_fuzz.go

+ 11 - 0
proxy/vmess/command/accounts_fuzz.go

@@ -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
+}