From e24195c7c1aaecebaf5ef4f81b54da2f0db917c6 Mon Sep 17 00:00:00 2001 From: cypherpunks Date: Sun, 26 Aug 2018 01:20:44 +0000 Subject: protover: reject invalid protocol names The spec only allows the characters [A-Za-z0-9-]. Fix on b2b2e1c7f24d9b65059e3d089768d6c49ba4f58f. Fixes #27316; bugfix on 0.2.9.4-alpha. --- src/test/test_protover.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/test') diff --git a/src/test/test_protover.c b/src/test/test_protover.c index 92ead3ca37..c4379a15e1 100644 --- a/src/test/test_protover.c +++ b/src/test/test_protover.c @@ -283,6 +283,10 @@ test_protover_vote_roundtrip(void *args) const char *input; const char *expected_output; } examples[] = { + { "Risqu\u00e9=1", NULL }, + { ",,,=1", NULL }, + { "\xc1=1", NULL }, + { "Foo_Bar=1", NULL }, { "Fkrkljdsf", NULL }, { "Zn=4294967295", NULL }, { "Zn=4294967295-1", NULL }, -- cgit v1.2.3-54-g00ecf