summaryrefslogtreecommitdiff
path: root/src/feature/dirparse/unparseable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/feature/dirparse/unparseable.c')
-rw-r--r--src/feature/dirparse/unparseable.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/feature/dirparse/unparseable.c b/src/feature/dirparse/unparseable.c
index 98b68f90bb..930717a6ff 100644
--- a/src/feature/dirparse/unparseable.c
+++ b/src/feature/dirparse/unparseable.c
@@ -1,7 +1,7 @@
/* Copyright (c) 2001 Matej Pfajfar.
* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
- * Copyright (c) 2007-2020, The Tor Project, Inc. */
+ * Copyright (c) 2007-2021, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
@@ -497,6 +497,15 @@ dump_desc,(const char *desc, const char *type))
{
tor_assert(desc);
tor_assert(type);
+#ifndef TOR_UNIT_TESTS
+ /* For now, we are disabling this function, since it can be called with
+ * strings that are far too long. We can turn it back on if we fix it
+ * someday, but we'd need to give it a length argument. A likelier
+ * resolution here is simply to remove this module entirely. See tor#40286
+ * for background. */
+ if (1)
+ return;
+#endif
size_t len;
/* The SHA256 of the string */
uint8_t digest_sha256[DIGEST256_LEN];