mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
comments and improved error message on buffer overflow
This commit is contained in:
parent
19cae48556
commit
a38abae0a1
4 changed files with 28 additions and 16 deletions
|
@ -17,11 +17,11 @@ int main() {
|
|||
mi_version();
|
||||
|
||||
// detect double frees and heap corruption
|
||||
// double_free1();
|
||||
// double_free2();
|
||||
// corrupt_free();
|
||||
// block_overflow1();
|
||||
dangling_ptr_write();
|
||||
double_free1();
|
||||
double_free2();
|
||||
corrupt_free();
|
||||
block_overflow1();
|
||||
// dangling_ptr_write();
|
||||
|
||||
void* p1 = malloc(78);
|
||||
void* p2 = malloc(24);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue