mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-03-09 18:13:30 -04:00
Suppress false null dereference
Coverity provides a false positive of pxQueueSetContainer being null.
This commit is contained in:
parent
9a39b1d39c
commit
98ffa0d892
1 changed files with 2 additions and 0 deletions
2
queue.c
2
queue.c
|
|
@ -3343,6 +3343,8 @@ BaseType_t xQueueIsQueueFullFromISR( const QueueHandle_t xQueue )
|
||||||
configASSERT( pxQueueSetContainer ); /* LCOV_EXCL_BR_LINE */
|
configASSERT( pxQueueSetContainer ); /* LCOV_EXCL_BR_LINE */
|
||||||
configASSERT( pxQueueSetContainer->uxMessagesWaiting < pxQueueSetContainer->uxLength );
|
configASSERT( pxQueueSetContainer->uxMessagesWaiting < pxQueueSetContainer->uxLength );
|
||||||
|
|
||||||
|
/* pxQueue->pxQueueSetContainer is verified to be non-null by caller. */
|
||||||
|
/* coverity[dereference] */
|
||||||
if( pxQueueSetContainer->uxMessagesWaiting < pxQueueSetContainer->uxLength )
|
if( pxQueueSetContainer->uxMessagesWaiting < pxQueueSetContainer->uxLength )
|
||||||
{
|
{
|
||||||
const int8_t cTxLock = pxQueueSetContainer->cTxLock;
|
const int8_t cTxLock = pxQueueSetContainer->cTxLock;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue