2022-02-07 11:54:57 +01:00
|
|
|
#include <stdlib.h>
|
2020-06-18 03:59:44 +02:00
|
|
|
|
2022-01-21 20:47:21 +01:00
|
|
|
#include "test_util.h"
|
2022-01-02 13:30:34 +01:00
|
|
|
|
2020-06-18 03:59:44 +02:00
|
|
|
size_t malloc_object_size(void *ptr);
|
|
|
|
|
2022-01-02 13:30:34 +01:00
|
|
|
OPTNONE int main(void) {
|
2020-06-18 03:59:44 +02:00
|
|
|
char *p = malloc(16);
|
|
|
|
if (!p) {
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
char *q = p + 4096 * 4;
|
|
|
|
malloc_object_size(q);
|
|
|
|
return 0;
|
|
|
|
}
|