diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-07-05 13:42:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-05 13:42:26 -0400 |
commit | ff8c230d7cadb6c24dcf9c121521cff976fc83a5 (patch) | |
tree | fe76df5da20a4c5292a4ef4588596867e3e0f045 /src/test/test_addr.c | |
parent | ccae991662adb3b64bdb1dcd4a942e4d1e163414 (diff) | |
parent | 0ee15c92d5486fc73ba49dea7f12bf2f89012cfb (diff) | |
download | tor-ff8c230d7cadb6c24dcf9c121521cff976fc83a5.tar.gz tor-ff8c230d7cadb6c24dcf9c121521cff976fc83a5.zip |
Merge branch 'maint-0.2.4' into maint-0.2.5
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 50011e606b..2c126e6d14 100644 --- a/src/test/test_addr.c +++ b/src/test/test_addr.c @@ -349,6 +349,15 @@ test_addr_ip6_helpers(void) 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); |