hardened_malloc/test/simple-memory-corruption/double_free_large.c

13 lines
181 B
C
Raw Normal View History

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