hardened_malloc/test/realloc_c23_undefined_behaviour.c
2025-04-05 16:11:16 +02:00

16 lines
188 B
C

#include <stdlib.h>
#include "test_util.h"
OPTNONE int main(void) {
void *p, *q;
p = malloc(16);
if (!p) {
return -1;
}
q = realloc(p, 0);
return 0;
}