Menu

#157 In xQueueGenericSend, assert condition configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );

v1.0 (example)
closed-invalid
Richard
None
5
2017-12-12
2017-12-12
No

In the function xQueueGenericSend(), the boolean operator seems to be || instead && in the assert condition like below :
configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) )
Must probably be changed by:
configASSERT( !( ( pvItemToQueue == NULL ) || ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );

Discussion

  • Richard Barry

    Richard Barry - 2017-12-12
    • status: open --> closed-invalid
     
  • Richard Barry

    Richard Barry - 2017-12-12

    The assert says pvItemToQueue is only allowed to be NULL if the item size is 0, so the item to queue is only allowed to be NULL if no bytes are going to be copied from NULL. I have double checked and the assert appears correct. If you think there is an error please post a question to the support forum.

     

Log in to post a comment.

MongoDB Logo MongoDB