[tor-commits] [tor/master] test/protover: add test for hyphen parsing bug

nickm at torproject.org nickm at torproject.org
Wed Aug 29 01:32:54 UTC 2018


commit 4f3e6d5027c6c5ee49929f5329235f6c5de6ef6a
Author: cypherpunks <cypherpunks at torproject.org>
Date:   Fri Aug 17 17:14:25 2018 +0000

    test/protover: add test for hyphen parsing bug
---
 src/test/test_protover.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/test/test_protover.c b/src/test/test_protover.c
index 0948cd564..907b334be 100644
--- a/src/test/test_protover.c
+++ b/src/test/test_protover.c
@@ -575,6 +575,10 @@ test_protover_vote_roundtrip(void *args)
     { "Faux=-1", NULL },
     { "Faux=-1-3", NULL },
     { "Faux=1--1", NULL },
+    { "Link=1-2-", NULL },
+    { "Link=1-2-3", NULL },
+    { "Faux=1-2-", NULL },
+    { "Faux=1-2-3", NULL },
     /* Large integers */
     { "Link=4294967296", NULL },
     /* Large range */





More information about the tor-commits mailing list