mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
restrict max aligment boundary to prevent bug with segment determination (found by Matthew Parkinson).
This commit is contained in:
parent
60790e9013
commit
684c2c82a7
3 changed files with 6 additions and 1 deletions
|
@ -158,7 +158,10 @@ typedef int32_t mi_ssize_t;
|
|||
#define MI_BIN_HUGE (73U)
|
||||
|
||||
#if (MI_LARGE_OBJ_WSIZE_MAX >= 655360)
|
||||
#error "define more bins"
|
||||
#error "mimalloc internal: define more bins"
|
||||
#endif
|
||||
#if (MI_ALIGNED_MAX > MI_SEGMENT_SIZE/2)
|
||||
#error "mimalloc internal: the max aligned boundary is too large for the segment size"
|
||||
#endif
|
||||
|
||||
// Used as a special value to encode block sizes in 32 bits.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue