From b6cebd127d2cd5bb8d9f3d7548c6df365c3ffacd Mon Sep 17 00:00:00 2001 From: V2Ray Date: Tue, 10 Nov 2015 18:16:13 +0100 Subject: [PATCH] fuzz test for socks udp --- proxy/socks/protocol/socks_fuzz_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proxy/socks/protocol/socks_fuzz_test.go b/proxy/socks/protocol/socks_fuzz_test.go index 05c27e1c..c2a73039 100644 --- a/proxy/socks/protocol/socks_fuzz_test.go +++ b/proxy/socks/protocol/socks_fuzz_test.go @@ -27,3 +27,9 @@ func TestReadRequest(t *testing.T) { ReadRequest(fuzzing.RandomReader()) } } + +func TestReadUDPRequest(t *testing.T) { + for i := 0; i < Iterations; i++ { + ReadUDPRequest(fuzzing.RandomBytes()) + } +}