mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 13:53:31 +01:00
Update the buffer sentinel fix to work with our #20081 fix.
This commit is contained in:
parent
1a74881063
commit
66ecdcdd75
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user