2020-06-09 07:51:17 +05:30
|
|
|
#include <stdbool.h>
|
2022-02-07 16:24:57 +05:30
|
|
|
#include <stdlib.h>
|
2020-06-09 07:51:17 +05:30
|
|
|
|
2022-01-22 01:17:21 +05:30
|
|
|
#include "test_util.h"
|
2020-06-18 02:09:50 +05:30
|
|
|
|
2020-06-09 07:51:17 +05:30
|
|
|
size_t malloc_object_size(void *ptr);
|
|
|
|
|
2020-06-18 02:09:50 +05:30
|
|
|
OPTNONE int main(void) {
|
2020-06-09 07:51:17 +05:30
|
|
|
char *p = malloc(16);
|
|
|
|
size_t size = malloc_object_size(p);
|
|
|
|
return size != (SLAB_CANARY ? 24 : 32);
|
|
|
|
}
|