]> begriffs open source - freertos/commit
Heap protect (#747)
authoroliverlavery <oliver.lavery@gmail.com>
Wed, 23 Aug 2023 04:57:54 +0000 (05:57 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Aug 2023 04:57:54 +0000 (10:27 +0530)
commit0d9649ca4514c32b8aaac31a3c56c7865fefcc94
tree2738808ed207ff3f6488747d6dcb08c71ed47c03
parentb9f488a7133c6dadf236a44ec318eb2d2ab0573b
Heap protect (#747)

Setting configENABLE_HEAP_PROTECTOR to 1 obfuscates heap
block pointers by XORing them with an application supplied
canary value. This obfuscation helps to catch heap corruption
should a heap buffer overflow occur.

This PR also adds heap bounds checking to heap_4 and heap_5.

This PR also adds some additional integer underflow checks.
include/FreeRTOS.h
portable/MemMang/heap_4.c
portable/MemMang/heap_5.c