From 66ecdcdd7573f1dafbdb1e14a7ef375f04be812c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 17 Oct 2016 14:52:44 -0400 Subject: [PATCH] Update the buffer sentinel fix to work with our #20081 fix. --- src/or/buffers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/buffers.c b/src/or/buffers.c index a7b46bf908..8981fd283b 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -205,7 +205,7 @@ chunk_grow(chunk_t *chunk, size_t sz) STATIC size_t preferred_chunk_size(size_t target) { - tor_assert(target <= SIZE_T_CEILING - CHUNK_HEADER_LEN); + tor_assert(target <= SIZE_T_CEILING - CHUNK_OVERHEAD); if (CHUNK_ALLOC_SIZE(target) >= MAX_CHUNK_ALLOC) return CHUNK_ALLOC_SIZE(target); size_t sz = MIN_CHUNK_ALLOC;