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

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


commit 18416b2cf0822ec9579854291292cb0ba4d4844a
Author: cypherpunks <cypherpunks at torproject.org>
Date:   Fri Aug 17 17:25:24 2018 +0000

    test/protover: add test for whitespace 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 907b334be..b9b085859 100644
--- a/src/test/test_protover.c
+++ b/src/test/test_protover.c
@@ -579,6 +579,10 @@ test_protover_vote_roundtrip(void *args)
     { "Link=1-2-3", NULL },
     { "Faux=1-2-", NULL },
     { "Faux=1-2-3", NULL },
+    { "Link=\t1,3", NULL },
+    { "Link=1\n,3", NULL },
+    { "Faux=1,\r3", NULL },
+    { "Faux=1,3\f", NULL },
     /* Large integers */
     { "Link=4294967296", NULL },
     /* Large range */





More information about the tor-commits mailing list