Skip to content

Commit

Permalink
Merge branch 'fix/freertos_task_c_add_coverity_fix_v5.2' into 'releas…
Browse files Browse the repository at this point in the history
…e/v5.2'

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

See merge request espressif/esp-idf!29757
  • Loading branch information
ESP-Marius committed Mar 25, 2024
2 parents ed57048 + b32d47a commit 8c5ccec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
}
Expand Down

0 comments on commit 8c5ccec

Please sign in to comment.