From d5263778065e62a4a20f3af236f6dde7bbb3afc4 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 13 Jan 2026 03:31:25 +0100 Subject: chore: kernel: hotpatch: BitMap `FreeBitMap` bug fix. Reasons: - This commit enforces BitMapMagIdx check when freeing a so-called heap allocated pointer. - This will prevent many heap corruption issues down the line. Signed-off-by: Amlal El Mahrouss --- src/kernel/NeKit/Function.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/NeKit/Function.h') diff --git a/src/kernel/NeKit/Function.h b/src/kernel/NeKit/Function.h index 77d9aa23..c26c4ea0 100644 --- a/src/kernel/NeKit/Function.h +++ b/src/kernel/NeKit/Function.h @@ -17,7 +17,7 @@ class Function final { Function() = delete; Function(nullPtr) = delete; - ~Function() = default; + ~Function() = default; Function(T (*Fn)(Args... args)) : fFn(Fn) { MUST_PASS(fFn); } Function& operator=(const Function&) = delete; -- cgit v1.2.3