mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
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:
@@ -936,7 +936,7 @@ static List_t * pxGetTaskListByIndex( UBaseType_t uxListIndex )
|
|||||||
{
|
{
|
||||||
pxTaskList = &pxReadyTasksLists[ configMAX_PRIORITIES - 1 - 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 ];
|
pxTaskList = non_ready_task_lists[ uxListIndex - configMAX_PRIORITIES ];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user