File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1849,6 +1849,14 @@ BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue,
1849
1849
* again, but only as low as the next highest priority
1850
1850
* task that is waiting for the same mutex. */
1851
1851
uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout ( pxQueue );
1852
+
1853
+ /* vTaskPriorityDisinheritAfterTimeout uses the uxHighestWaitingPriority
1854
+ * parameter to index pxReadyTasksLists when adding the task holding
1855
+ * mutex to the ready list for its new priority. Coverity thinks that
1856
+ * it can result in out-of-bounds access which is not true because
1857
+ * uxHighestWaitingPriority, as returned by prvGetDisinheritPriorityAfterTimeout,
1858
+ * is capped at ( configMAX_PRIORITIES - 1 ). */
1859
+ /* coverity[overrun] */
1852
1860
vTaskPriorityDisinheritAfterTimeout ( pxQueue -> u .xSemaphore .xMutexHolder , uxHighestWaitingPriority );
1853
1861
}
1854
1862
taskEXIT_CRITICAL ();
You can’t perform that action at this time.
0 commit comments