diff options
| author | Amlal EL Mahrouss <113760121+amlel-el-mahrouss@users.noreply.github.com> | 2024-12-06 21:58:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-06 21:58:51 +0100 |
| commit | f153438704383277111233de9b54b8e1615036fc (patch) | |
| tree | 2e0a98dae379e85da966706a386a6cc7d7f232ef /dev | |
| parent | e08cf4a6fa0fca858f6ee302b2693e9fc39df110 (diff) | |
Heap.cc: mm_protect_heap: Fix condition which could cause a Access fault.
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/ZKAKit/src/Heap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/ZKAKit/src/Heap.cc b/dev/ZKAKit/src/Heap.cc index 9c46f312..b3333359 100644 --- a/dev/ZKAKit/src/Heap.cc +++ b/dev/ZKAKit/src/Heap.cc @@ -292,7 +292,7 @@ namespace Kernel reinterpret_cast<Detail::HEAP_INFORMATION_BLOCK_PTR>( (UIntPtr)heap_ptr - sizeof(Detail::HEAP_INFORMATION_BLOCK)); - if (heap_ptr && heap_info_ptr->fPresent && kKernelHeapMagic == heap_info_ptr->fMagic) + if (heap_info_ptr && heap_info_ptr->fPresent && kKernelHeapMagic == heap_info_ptr->fMagic) { heap_info_ptr->fCRC32 = ke_calculate_crc32((Char*)heap_info_ptr->fHeapPtr, heap_info_ptr->fHeapSize); |
