diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-03-15 08:52:29 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-03-15 08:52:29 -0400 |
commit | 7c5a67ccd983bb028d21a5e8aa48b4cd9d6a8a1c (patch) | |
tree | 862e8a596e00870f7ea4d19b75cd107a82f4c203 /src/feature/dirparse | |
parent | be17a5a3cffa72ee51bfd854d4e82a90c64c51d6 (diff) | |
parent | b9f65390089817a74bf20d93e93a15b41a970f79 (diff) | |
download | tor-7c5a67ccd983bb028d21a5e8aa48b4cd9d6a8a1c.tar.gz tor-7c5a67ccd983bb028d21a5e8aa48b4cd9d6a8a1c.zip |
Merge branch 'maint-0.4.4' into maint-0.4.5
Diffstat (limited to 'src/feature/dirparse')
-rw-r--r-- | src/feature/dirparse/unparseable.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/feature/dirparse/unparseable.c b/src/feature/dirparse/unparseable.c index 98b68f90bb..da3c80e383 100644 --- a/src/feature/dirparse/unparseable.c +++ b/src/feature/dirparse/unparseable.c @@ -497,6 +497,12 @@ dump_desc,(const char *desc, const char *type)) { tor_assert(desc); tor_assert(type); +#ifndef TOR_UNIT_TESTS + /* On older versions of Tor we are disabling this function, since it + * can be called with strings that are far too long. */ + if (1) + return; +#endif size_t len; /* The SHA256 of the string */ uint8_t digest_sha256[DIGEST256_LEN]; |