aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-07-05 13:43:31 -0400
committerNick Mathewson <nickm@torproject.org>2017-07-05 13:43:31 -0400
commit546f5b364bd8198b23b1ad4e66790eb1ce9b438e (patch)
tree7e763a2d2c3a68ffaba52568ea25d7c60951855b /src/test
parent8bc70a2ad2c0363986e4b002ceaf259908d67e70 (diff)
parent32c0066e4baa2ca16902a70b941d8d3afbc279ff (diff)
downloadtor-546f5b364bd8198b23b1ad4e66790eb1ce9b438e.tar.gz
tor-546f5b364bd8198b23b1ad4e66790eb1ce9b438e.zip
Merge branch 'maint-0.2.9' into maint-0.3.0
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_addr.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/test_addr.c b/src/test/test_addr.c
index 49e248014f..be440a0925 100644
--- a/src/test/test_addr.c
+++ b/src/test/test_addr.c
@@ -354,6 +354,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);