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

11 lines
159 B
C
Raw Normal View History

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