commit | 76bceb9ed29d669be978cef7c85b5864f73fbd33 | [log] [tgz] |
---|---|---|
author | Corey Wharton <xodus7@cwharton.com> | Wed Oct 23 14:36:25 2024 -0700 |
committer | Anas Nashif <anas.nashif@intel.com> | Sat Nov 16 15:54:56 2024 -0500 |
tree | 5025f57fd74870bce2b9ea535048851c6aa8f28a | |
parent | e330b55f811e58c821f9ca8676e829b65de4a099 [diff] |
kernel: mem_slab: always validate memory address on free Allowing an invalid address to be "freed" when asserts are disabled is dangerous and can lead to a very hard class of bugs (and potential security issues) to troubleshoot. This change always validates the address before adding it to the free list and calls k_panic() if asserts are not enabled. Signed-off-by: Corey Wharton <xodus7@cwharton.com>