summaryrefslogtreecommitdiff
path: root/src/common/container.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-20 14:19:00 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-20 16:16:45 -0400
commit7a2dce90062187cac332cda2ca336db6547fe60b (patch)
treecb5e5f973c887013b85b1f9416efa9f646f0c0c0 /src/common/container.c
parent17ba51a30a87b554093781a3becc6e39e9573684 (diff)
downloadtor-7a2dce90062187cac332cda2ca336db6547fe60b.tar.gz
tor-7a2dce90062187cac332cda2ca336db6547fe60b.zip
Use raw_assert() in central allocation functions.
This is, again, to avoid circularity in the log code.
Diffstat (limited to 'src/common/container.c')
-rw-r--r--src/common/container.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/container.c b/src/common/container.c
index b1a2ac7994..c66ea012a9 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -73,7 +73,7 @@ smartlist_ensure_capacity(smartlist_t *sl, size_t size)
#define MAX_CAPACITY (int)((SIZE_MAX / (sizeof(void*))))
#endif
- tor_assert(size <= MAX_CAPACITY);
+ raw_assert(size <= MAX_CAPACITY);
if (size > (size_t) sl->capacity) {
size_t higher = (size_t) sl->capacity;
@@ -1538,4 +1538,3 @@ digestset_free_(digestset_t *set)
bitarray_free(set->ba);
tor_free(set);
}
-