mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 11:58:41 +03:00
fix debug freed bytes fill non-owning thread free
This commit is contained in:
parent
ad47cab97c
commit
f690711539
2 changed files with 15 additions and 11 deletions
|
@ -103,9 +103,7 @@ static void* alloc_items(size_t items, random_t r) {
|
|||
for (uintptr_t i = 0; i < items; i++) {
|
||||
p[i] = (items - i) ^ cookie;
|
||||
}
|
||||
if (pick(r)%1000 <= 1) {
|
||||
p[items+1] = 42; // overflow
|
||||
}
|
||||
// if (pick(r)%1000 <= 1) { p[items+1] = 42; } // overflow
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue