mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
fix padding check and set default extra padding to 0
This commit is contained in:
parent
2e175c1221
commit
6b6a8a2315
2 changed files with 2 additions and 2 deletions
|
@ -273,7 +273,7 @@ typedef struct mi_segment_s {
|
|||
// In debug mode there is a padding stucture at the end
|
||||
// of the blocks to check for buffer overflows.
|
||||
// ------------------------------------------------------
|
||||
#if defined(MI_PADDING)
|
||||
#if (MI_PADDING)
|
||||
typedef struct mi_padding_s {
|
||||
uint32_t canary; // encoded block value to check validity of the padding (in case of heap block overflow)
|
||||
uint32_t delta; // padding bytes before the block. (mi_usable_size(p) - delta == exact allocated bytes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue