hardened_malloc/test/simple-memory-corruption/unaligned_free_large.c
2018-08-24 03:13:50 -04:00

12 lines
172 B
C

#include <stdlib.h>
__attribute__((optimize(0)))
int main(void) {
char *p = malloc(128 * 1024);
if (!p) {
return 1;
}
free(p + 1);
return 0;
}