| 182 | } |
| 183 | |
| 184 | bool CheckRegion(uintptr_t addr, uint64_t len, address_space_t* addressSpace){ |
| 185 | return addr < PDPT_SIZE && (addr + len) < PDPT_SIZE && (addressSpace->pdpt[PDPT_GET_INDEX(addr)] & PDPT_USER) && (addressSpace->pdpt[PDPT_GET_INDEX(addr + len)] & PDPT_USER); |
| 186 | } |
| 187 | |
| 188 | bool CheckKernelPointer(uintptr_t addr, uint64_t len){ |
| 189 | if(PML4_GET_INDEX(addr) != PML4_GET_INDEX(KERNEL_VIRTUAL_BASE)){ |
no outgoing calls
no test coverage detected