diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-05 13:42:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-05 13:42:47 -0400 |
commit | 5ff0f1ab9e3a0b82b177b3f710201d0ad35b69c4 (patch) | |
tree | 839ba79f64b266a6f9f94252e8004e8123ff1eca /src/test | |
parent | 3483f7c00349be6cba7b703f2e5ee94563d0c6eb (diff) | |
parent | 6cd6d488dc2469df82d74f0fcc3c84f5b45e8447 (diff) | |
download | tor-5ff0f1ab9e3a0b82b177b3f710201d0ad35b69c4.tar.gz tor-5ff0f1ab9e3a0b82b177b3f710201d0ad35b69c4.zip |
Merge branch 'maint-0.2.7-redux' into maint-0.2.8
Diffstat (limited to 'src/test')
-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 337bddad6b..56e79d707a 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); |