Skip to content

Commit

Permalink
Merge branch 'fix/freertos_task_c_add_coverity_fix' into 'master'
Browse files Browse the repository at this point in the history
fix(freertos): Fixed an issue where accessing task lists could overrun memory

Closes IDF-9412

See merge request espressif/esp-idf!29746
  • Loading branch information
sudeep-mohanty committed Mar 20, 2024
2 parents 1f3160c + 42c935e commit 4f3cd0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,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 4f3cd0d

Please sign in to comment.