diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-07-19 20:47:18 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-07-19 20:47:18 +0000 |
commit | 6223160ab7a5e6d20fcbd7095e4d154d0c1e0316 (patch) | |
tree | e9ba7e9f1b4451ccd16c5689ee1e56c2fe26105b /src/or/test.c | |
parent | 3015129a4a7a0e981fee3424e2f4e3b2170ef5e7 (diff) | |
download | tor-6223160ab7a5e6d20fcbd7095e4d154d0c1e0316.tar tor-6223160ab7a5e6d20fcbd7095e4d154d0c1e0316.tar.gz |
r13848@catbus: nickm | 2007-07-19 16:47:16 -0400
Use our own version of inet_ntop and inet_pton everywhere, to avoid partitioning attacks.
svn:r10888
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/or/test.c b/src/or/test.c index f48de191d..408adaf8d 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -1243,13 +1243,10 @@ test_ip6_helpers(void) test_assert(r == -1); r=tor_addr_parse_mask_ports("efef::/112", &t1, NULL, NULL, NULL); test_assert(r == -1); -#if 0 - /* These two are okay on OSX and some BSDs. */ r=tor_addr_parse_mask_ports("[f:f:f:f:f:f:f:f::]", &t1, NULL, NULL, NULL); test_assert(r == -1); r=tor_addr_parse_mask_ports("[::f:f:f:f:f:f:f:f]", &t1, NULL, NULL, NULL); test_assert(r == -1); -#endif r=tor_addr_parse_mask_ports("[f:f:f:f:f:f:f:f:f]", &t1, NULL, NULL, NULL); test_assert(r == -1); /* Test for V4-mapped address with mask < 96. (arguably not valid) */ |