]> begriffs open source - freertos/commit
Refine heap_5 heap protector (#1146)
authorSaiiijchan <49641410+Saiiijchan@users.noreply.github.com>
Thu, 19 Sep 2024 05:06:52 +0000 (13:06 +0800)
committerGitHub <noreply@github.com>
Thu, 19 Sep 2024 05:06:52 +0000 (10:36 +0530)
commit61440fc664894c96e757aabc415e6dbd55fd836b
tree1205dd0ac3fa06792af88922e3853266bd57131e
parentd3052f1f50c416ba30e8036410ee79765d5fd4a5
Refine heap_5 heap protector (#1146)

Add configVALIDATE_HEAP_BLOCK_POINTER on heap_5

heap_5 is used for multiple separated memory spaces. In the
previous implementation, it only verifies the highest and
lowest addresses. A pointer may not be within heap regions,
but is still located between the highest and lowest addressed.

Add maco configVALIDATE_HEAP_BLOCK_POINTER to provide
customized heap block pointers detection based on the settings
of heap regions.

Signed-off-by: wangfei_chen <wangfei_chen@realsil.com.cn>
portable/MemMang/heap_5.c