diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-05 13:42:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-05 13:42:32 -0400 |
commit | f6420bceec9707324fe23c98a2a70dd2612f183f (patch) | |
tree | 100631d39c5d0c2014f8195293b1e3aacd88555d /src/test/test_addr.c | |
parent | 3de27618e65affe3688a5d92bce96e1e4ed5a82a (diff) | |
parent | ff8c230d7cadb6c24dcf9c121521cff976fc83a5 (diff) | |
download | tor-f6420bceec9707324fe23c98a2a70dd2612f183f.tar.gz tor-f6420bceec9707324fe23c98a2a70dd2612f183f.zip |
Merge branch 'maint-0.2.5' into maint-0.2.6
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 2c25c1ef7d..0f77e73630 100644 --- a/src/test/test_addr.c +++ b/src/test/test_addr.c @@ -353,6 +353,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); |