Files
rt-thread/src
Hui Su 8234a3614e [kernel/memheap] fix: stop invalid frees from corrupting heap
RT_ASSERT() does not stop execution when RT_DEBUGING_ASSERT is disabled.
Return after the existing block validation so a sequential duplicate free
cannot update heap accounting or the free list in release builds.

Before fix:
  memheap double-free used: before=64 alloc=224 free=64 after=4294959232

Validation:
scons -C bsp/qemu-vexpress-a9 -j$(nproc)

Signed-off-by: Hui Su <3164683437@qq.com>
2026-08-20 09:48:13 +08:00
..
2026-04-30 06:19:58 +08:00
…
…
…
…
…
…
…
…