From 8717ea629c06efe785e86f639727c522980f215a Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 15 Sep 2024 09:17:33 +0200 Subject: FIX: Zero memory the HIB's padding zone. (Heap.cxx) Signed-off-by: Amlal --- dev/ZKA/Sources/Heap.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dev') diff --git a/dev/ZKA/Sources/Heap.cxx b/dev/ZKA/Sources/Heap.cxx index 1616912e..21ee6d67 100644 --- a/dev/ZKA/Sources/Heap.cxx +++ b/dev/ZKA/Sources/Heap.cxx @@ -9,6 +9,7 @@ #include #include #include +#include //! @file KernelHeap.cxx //! @brief Kernel heap allocator. @@ -113,6 +114,8 @@ namespace Kernel heap_info_ptr->fUser = user; heap_info_ptr->fPresent = Yes; + rt_set_memory(heap_info_ptr->fPadding, 0, kKernelHeapHeaderPaddingSz); + auto result = reinterpret_cast(heap_info_ptr->fHeapPtr); kLatestAllocation = heap_info_ptr; -- cgit v1.2.3