Browse Source

Update the buffer sentinel fix to work with our #20081 fix.

Nick Mathewson 7 years ago
parent
commit
66ecdcdd75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/buffers.c

+ 1 - 1
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;