diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-05 13:43:31 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-05 13:43:31 -0400 |
commit | 5434b2451e73bd4cd5eb62fb5e6c468eeee70153 (patch) | |
tree | de70e85c16f53fdbe3c7c12031e3b3ae3b79dec1 /src/test/test_addr.c | |
parent | 0f97f963e3c267852a3f28538c5ddb196ce0bb42 (diff) | |
parent | 546f5b364bd8198b23b1ad4e66790eb1ce9b438e (diff) | |
download | tor-5434b2451e73bd4cd5eb62fb5e6c468eeee70153.tar.gz tor-5434b2451e73bd4cd5eb62fb5e6c468eeee70153.zip |
Merge branch 'maint-0.3.0' into maint-0.3.1
Diffstat (limited to 'src/test/test_addr.c')
-rw-r--r-- | src/test/test_addr.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/test_addr.c b/src/test/test_addr.c index daa8e74189..2f591bdfe7 100644 --- a/src/test/test_addr.c +++ b/src/test/test_addr.c @@ -376,6 +376,15 @@ test_addr_ip6_helpers(void *arg) test_pton6_bad("1.2.3.4"); test_pton6_bad(":1.2.3.4"); test_pton6_bad(".2.3.4"); + /* Regression tests for 22789. */ + test_pton6_bad("0xfoo"); + test_pton6_bad("0x88"); + test_pton6_bad("0xyxxy"); + test_pton6_bad("0XFOO"); + test_pton6_bad("0X88"); + test_pton6_bad("0XYXXY"); + test_pton6_bad("0x"); + test_pton6_bad("0X"); /* test internal checking */ test_external_ip("fbff:ffff::2:7", 0); |