Merge branch 'fix/freertos_task_c_add_coverity_fix_v5.2' into 'release/v5.2'

fix(freertos): Fixed an issue where accessing task lists could overrun memory (v5.2)

See merge request espressif/esp-idf!29757
This commit is contained in:
Marius Vikhammer
2024-03-25 20:57:56 +08:00

View File

@@ -936,7 +936,7 @@ static List_t * pxGetTaskListByIndex( UBaseType_t uxListIndex )
{
pxTaskList = &pxReadyTasksLists[ configMAX_PRIORITIES - 1 - uxListIndex ];
}
else if( uxListIndex < configMAX_PRIORITIES + xNonReadyTaskListsCnt + 1 )
else if( uxListIndex < configMAX_PRIORITIES + xNonReadyTaskListsCnt )
{
pxTaskList = non_ready_task_lists[ uxListIndex - configMAX_PRIORITIES ];
}