aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_protover.c
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2018-08-17 17:14:25 +0000
committercypherpunks <cypherpunks@torproject.org>2018-08-17 17:21:46 +0000
commit4f3e6d5027c6c5ee49929f5329235f6c5de6ef6a (patch)
treef38d321c7bc64eaf58e03b2ea1b34db43af4d01b /src/test/test_protover.c
parent87aacbfbba2e2fee67de218b721c0bdb9a0ae73a (diff)
downloadtor-4f3e6d5027c6c5ee49929f5329235f6c5de6ef6a.tar.gz
tor-4f3e6d5027c6c5ee49929f5329235f6c5de6ef6a.zip
test/protover: add test for hyphen parsing bug
Diffstat (limited to 'src/test/test_protover.c')
-rw-r--r--src/test/test_protover.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test_protover.c b/src/test/test_protover.c
index 0948cd5640..907b334bee 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 */