hardened_malloc/test/invalid_malloc_usable_size_...

14 lines
190 B
C
Raw Permalink Normal View History

2020-04-16 04:02:16 +00:00
#include <malloc.h>
#include "test_util.h"
OPTNONE int main(void) {
2020-04-16 04:02:16 +00:00
void *p = malloc(16);
if (!p) {
return 1;
}
free(p);
malloc_usable_size(p);
return 0;
}