commit 2bd508173cb41f910733c03e1e56f65dd97291a6
Author: David Fifield <[email protected]>
Date:   Sun Dec 8 11:40:24 2013 -0800

    Add tests for whitespace in resolveAddr.
---
 pt_test.go |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pt_test.go b/pt_test.go
index e75bb02..653d64d 100644
--- a/pt_test.go
+++ b/pt_test.go
@@ -205,6 +205,10 @@ func TestResolveAddr(t *testing.T) {
                "1.2.3.4:0x50",
                "1.2.3.4:-65456",
                "1.2.3.4:65536",
+               "1.2.3.4:80\x00",
+               "1.2.3.4:80 ",
+               " 1.2.3.4:80",
+               "1.2.3.4 : 80",
        }
        goodTests := [...]struct {
                input    string



_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to