diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-09-07 18:06:44 +0300 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-09-07 14:05:07 -0400 |
commit | 3695ef6343fa1c05cd15a3ddf35c3fe6991ff2ad (patch) | |
tree | a218492f0a884d39e3a3b2d36dff0663424b174a /src/test/test_hs_client.c | |
parent | 6583d1e7091ba368b66c6f3038df223d3b7652cb (diff) | |
download | tor-3695ef6343fa1c05cd15a3ddf35c3fe6991ff2ad.tar.gz tor-3695ef6343fa1c05cd15a3ddf35c3fe6991ff2ad.zip |
HSv3: Don't assert when reading bad client-side privkeys.
Diffstat (limited to 'src/test/test_hs_client.c')
-rw-r--r-- | src/test/test_hs_client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_hs_client.c b/src/test/test_hs_client.c index eacbd328e5..03d14924b6 100644 --- a/src/test/test_hs_client.c +++ b/src/test/test_hs_client.c @@ -660,7 +660,9 @@ test_parse_auth_file_content(void *arg) "x:zdsyvn2jq534ugyiuzgjy4267jbtzcjbsgedhshzx5mforyxtryq")); /* Some malformed string. */ tt_assert(!parse_auth_file_content("xx:descriptor:x25519:aa==")); - + /* Bigger key than it should be */ + tt_assert(!parse_auth_file_content("xx:descriptor:x25519:" + "vjqea4jbhwwc4hto7ekyvqfbeodghbaq6nxi45hz4wr3qvhqv3yqa")); done: tor_free(auth); } |