#include #include #include int main() { void* p = malloc(10); printf("Malloc ptr: %p\n", p); void* m = mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); printf("Mmap ptr: %p\n", m); unsigned long long addr = (unsigned long long)m; if (addr > 0x00007fffffffffffULL) { printf("Mmap Address > 48-bit detected!\n"); } else { printf("Mmap Address within 48-bit range.\n"); } free(p); munmap(m, 4096); return 0; }