@@ -404,7 +404,7 @@ Socket_t FreeRTOS_socket( BaseType_t xDomain,
404404 if ( prvDetermineSocketSize ( xDomain , xType , xProtocolCpy , & uxSocketSize ) == pdFAIL )
405405 {
406406 /* MISRA Ref 11.4.1 [Socket error and integer to pointer conversion] */
407- /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-114 */
407+ /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-114 */
408408 /* coverity[misra_c_2012_rule_11_4_violation] */
409409 xReturn = FREERTOS_INVALID_SOCKET ;
410410 }
@@ -414,12 +414,16 @@ Socket_t FreeRTOS_socket( BaseType_t xDomain,
414414 * size depends on the type of socket: UDP sockets need less space. A
415415 * define 'pvPortMallocSocket' will used to allocate the necessary space.
416416 * By default it points to the FreeRTOS function 'pvPortMalloc()'. */
417+
418+ /* MISRA Ref 4.12.1 [Use of dynamic memory]. */
419+ /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#directive-412. */
420+ /* coverity[misra_c_2012_directive_4_12_violation] */
417421 pxSocket = ( ( FreeRTOS_Socket_t * ) pvPortMallocSocket ( uxSocketSize ) );
418422
419423 if ( pxSocket == NULL )
420424 {
421425 /* MISRA Ref 11.4.1 [Socket error and integer to pointer conversion] */
422- /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-114 */
426+ /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-114 */
423427 /* coverity[misra_c_2012_rule_11_4_violation] */
424428 xReturn = FREERTOS_INVALID_SOCKET ;
425429 iptraceFAILED_TO_CREATE_SOCKET ();
@@ -433,7 +437,7 @@ Socket_t FreeRTOS_socket( BaseType_t xDomain,
433437 vPortFreeSocket ( pxSocket );
434438
435439 /* MISRA Ref 11.4.1 [Socket error and integer to pointer conversion] */
436- /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-114 */
440+ /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-114 */
437441 /* coverity[misra_c_2012_rule_11_4_violation] */
438442 xReturn = FREERTOS_INVALID_SOCKET ;
439443 iptraceFAILED_TO_CREATE_EVENT_GROUP ();
@@ -528,6 +532,9 @@ Socket_t FreeRTOS_socket( BaseType_t xDomain,
528532 {
529533 SocketSelect_t * pxSocketSet ;
530534
535+ /* MISRA Ref 4.12.1 [Use of dynamic memory]. */
536+ /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#directive-412. */
537+ /* coverity[misra_c_2012_directive_4_12_violation] */
531538 pxSocketSet = ( ( SocketSelect_t * ) pvPortMalloc ( sizeof ( * pxSocketSet ) ) );
532539
533540 if ( pxSocketSet != NULL )
@@ -4235,6 +4242,9 @@ void vSocketWakeUpUser( FreeRTOS_Socket_t * pxSocket )
42354242
42364243 uxSize = ( sizeof ( * pxBuffer ) + uxLength ) - sizeof ( pxBuffer -> ucArray );
42374244
4245+ /* MISRA Ref 4.12.1 [Use of dynamic memory]. */
4246+ /* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#directive-412. */
4247+ /* coverity[misra_c_2012_directive_4_12_violation] */
42384248 pxBuffer = ( ( StreamBuffer_t * ) pvPortMallocLarge ( uxSize ) );
42394249
42404250 if ( pxBuffer == NULL )
0 commit comments