mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-06 17:30:22 +08:00
Add runtime parameter checks (#761)
* Add runtime parameter checks This commit adds runtime checks for function parameters to mpu_wrappers_v2 file. The same checks are performed in the API implementation using asserts. Signed-off-by: kar-rahul-aws <karahulx@amazon.com>
This commit is contained in:
2
tasks.c
2
tasks.c
@ -7408,6 +7408,8 @@ TickType_t uxTaskResetEventItemValue( void )
|
||||
TCB_t * pxTCB;
|
||||
uint32_t ulReturn;
|
||||
|
||||
configASSERT( uxIndexToClear < configTASK_NOTIFICATION_ARRAY_ENTRIES );
|
||||
|
||||
/* If null is passed in here then it is the calling task that is having
|
||||
* its notification state cleared. */
|
||||
pxTCB = prvGetTCBFromHandle( xTask );
|
||||
|
Reference in New Issue
Block a user