Length check in usGenerateProtocolChecksum()
@@ -1824,7 +1824,7 @@ uint8_t ucProtocol;
{
return ipINVALID_LENGTH;
}
- if( uxBufferLength < FreeRTOS_ntohs( pxIPPacket->xIPHeader.usLength ) )
+ if( uxBufferLength < ( size_t ) ( ipSIZE_OF_ETH_HEADER + FreeRTOS_ntohs( pxIPPacket->xIPHeader.usLength ) ) )
{
return ipINVALID_LENGTH;
}
