diff options
author | cypherpunks <cypherpunks@torproject.org> | 2018-08-26 01:20:44 +0000 |
---|---|---|
committer | cypherpunks <cypherpunks@torproject.org> | 2018-09-14 02:18:04 +0000 |
commit | e24195c7c1aaecebaf5ef4f81b54da2f0db917c6 (patch) | |
tree | e3e289a19a0e9be3537b00461ad18b666f5b966e /src/test | |
parent | c02f2d9eb45786c552dcc33c102e9964d95f66c1 (diff) | |
download | tor-e24195c7c1aaecebaf5ef4f81b54da2f0db917c6.tar.gz tor-e24195c7c1aaecebaf5ef4f81b54da2f0db917c6.zip |
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.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_protover.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 }, |