mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-10 17:29:31 +03:00
fix test
This commit is contained in:
parent
be9ee3a4aa
commit
9c1945b1a4
1 changed files with 1 additions and 3 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 heap block
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue