]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Merge branch 'maint-0.2.4' into maint-0.2.5
authorNick Mathewson <nickm@torproject.org>
Wed, 5 Jul 2017 17:42:26 +0000 (13:42 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 5 Jul 2017 17:42:26 +0000 (13:42 -0400)
1  2 
src/common/compat.c
src/test/test_addr.c

Simple merge
index 50011e606bcc5dcb742633006288808d0f81ef14,645fc643db2ba2395eaa3d5082a33db870ce61ce..2c126e6d14d45f6abcc079f5484e093dc568ff58
@@@ -346,9 -340,15 +346,18 @@@ test_addr_ip6_helpers(void
    test_pton6_bad("a:::b:c");
    test_pton6_bad(":::a:b:c");
    test_pton6_bad("a:b:c:::");
 +  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);