Skip to content

Commit 98ffa0d

Browse files
committed
Suppress false null dereference
Coverity provides a false positive of pxQueueSetContainer being null.
1 parent 9a39b1d commit 98ffa0d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

queue.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3343,6 +3343,8 @@ BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue )
33433343
configASSERT( pxQueueSetContainer ); /* LCOV_EXCL_BR_LINE */
33443344
configASSERT( pxQueueSetContainer->uxMessagesWaiting < pxQueueSetContainer->uxLength );
33453345

3346+
/* pxQueue->pxQueueSetContainer is verified to be non-null by caller. */
3347+
/* coverity[dereference] */
33463348
if( pxQueueSetContainer->uxMessagesWaiting < pxQueueSetContainer->uxLength )
33473349
{
33483350
const int8_t cTxLock = pxQueueSetContainer->cTxLock;

0 commit comments

Comments
 (0)