mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/freertos_task_c_add_coverity_fix' into 'master'
fix(freertos): Fixed an issue where accessing task lists could overrun memory Closes IDF-9412 See merge request espressif/esp-idf!29746
This commit is contained in:
commit
4f3cd0deb9
@ -917,7 +917,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 ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user