Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions MISRA.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ _Ref 14.3.1_

- MISRA C-2012 Rule 14.3 False positive as the value might be changed depending
on the conditionally compiled code
- MISRA C-2012 Rule 14.3 The controlling expression compares sizeof against a
configuration constant. The result is invariant for a given configuration but
varies across different user configurations.

#### Rule 17.2

Expand Down
3 changes: 3 additions & 0 deletions source/FreeRTOS_ARP.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,9 @@
{
/* This is called from the context of the IP event task, so a block time
* must not be used. */
/* MISRA Ref 14.3.1 [Invariant controlling expression] */
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/blob/main/MISRA.md#rule-143 */
/* coverity[misra_c_2012_rule_14_3_violation] */
pxNetworkBuffer = pxGetNetworkBufferWithDescriptor( ( ( sizeof( ARPPacket_t ) > ( size_t ) ipconfigETHERNET_MINIMUM_PACKET_BYTES ) ? sizeof( ARPPacket_t ) : ( size_t ) ipconfigETHERNET_MINIMUM_PACKET_BYTES ), ( TickType_t ) 0U );

if( pxNetworkBuffer != NULL )
Expand Down
Loading