mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-24 00:41:11 -04:00
Move memory corruption tests up a directory
This commit is contained in:
parent
0bbcc5d610
commit
84eadd8568
42 changed files with 83 additions and 140 deletions
18
test/double_free_small_delayed.c
Normal file
18
test/double_free_small_delayed.c
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include "test_util.h"
|
||||
|
||||
OPTNONE int main(void) {
|
||||
void *p = malloc(16);
|
||||
if (!p) {
|
||||
return 1;
|
||||
}
|
||||
void *q = malloc(16);
|
||||
if (!q) {
|
||||
return 1;
|
||||
}
|
||||
free(p);
|
||||
free(q);
|
||||
free(p);
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue