From f153438704383277111233de9b54b8e1615036fc Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss <113760121+amlel-el-mahrouss@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:58:51 +0100 Subject: Heap.cc: mm_protect_heap: Fix condition which could cause a Access fault. --- dev/ZKAKit/src/Heap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( (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); -- cgit v1.2.3