diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-13 03:31:25 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-13 03:31:25 +0100 |
| commit | d5263778065e62a4a20f3af236f6dde7bbb3afc4 (patch) | |
| tree | 815a1b38453fea8c392131ae84cc9b5639cfa6d8 /src/kernel/NeKit | |
| parent | 15cbf6ddd67eeccc751188833076c48dc0a9b429 (diff) | |
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 <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/NeKit')
| -rw-r--r-- | src/kernel/NeKit/Atom.h | 2 | ||||
| -rw-r--r-- | src/kernel/NeKit/Function.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/NeKit/Atom.h b/src/kernel/NeKit/Atom.h index 3dedea32..17f26bcf 100644 --- a/src/kernel/NeKit/Atom.h +++ b/src/kernel/NeKit/Atom.h @@ -24,7 +24,7 @@ class Atom final { const TypeAtomic& operator[](const SizeT& bit) { return (fArrayOfAtoms & (1 << bit)); } - void operator|(const SizeT& bit) { fArrayOfAtoms |= (1 << bit); } + void operator|(const SizeT& bit) { fArrayOfAtoms |= (1 << bit); } Atom& operator|=(const SizeT& bit) { this->operator|(bit); 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; |
