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

11 lines
159 B
C
Raw Normal View History

2018-08-24 14:32:00 +05:30
#include <stdlib.h>
__attribute__((optimize(0)))
int main(void) {
void *p = realloc((void *)1, 16);
if (!p) {
return 1;
}
return 0;
}