mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
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.
This commit is contained in:
parent
b9f488a713
commit
0d9649ca45
3 changed files with 201 additions and 53 deletions
|
@ -1071,6 +1071,10 @@
|
|||
#define configAPPLICATION_ALLOCATED_HEAP 0
|
||||
#endif
|
||||
|
||||
#ifndef configENABLE_HEAP_PROTECTOR
|
||||
#define configENABLE_HEAP_PROTECTOR 0
|
||||
#endif
|
||||
|
||||
#ifndef configUSE_TASK_NOTIFICATIONS
|
||||
#define configUSE_TASK_NOTIFICATIONS 1
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue