[tor-commits] [goptlib/master] Add tests for whitespace in resolveAddr.
dcf at torproject.org
dcf at torproject.org
Mon Dec 9 02:49:51 UTC 2013
commit 2bd508173cb41f910733c03e1e56f65dd97291a6
Author: David Fifield <david at bamsoftware.com>
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
More information about the tor-commits
mailing list