Skip to content

Commit 4af33fb

Browse files
committed
Formatting
1 parent f632627 commit 4af33fb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Svc/Ccsds/SpacePacketDeframer/SpacePacketDeframer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ void SpacePacketDeframer ::dataIn_handler(FwIndexType portNum, Fw::Buffer& data,
6565
// Widen to U32 before adding 1 to prevent U16 truncation to 0 when packetDataLength == 0xFFFF (max U16 value).
6666
// This is a undefined behavior condition in C++.
6767
const U32 pkt_length = static_cast<U32>(header.get_packetDataLength()) + 1U;
68-
if ((pkt_length > data.getSize() - SpacePacketHeader::SERIALIZED_SIZE) || (pkt_length > std::numeric_limits<FwSizeType>::max())) {
68+
if ((pkt_length > data.getSize() - SpacePacketHeader::SERIALIZED_SIZE) ||
69+
(pkt_length > std::numeric_limits<FwSizeType>::max())) {
6970
FwSizeType maxDataAvailable = data.getSize() - SpacePacketHeader::SERIALIZED_SIZE;
7071
this->log_WARNING_HI_InvalidLength(pkt_length, maxDataAvailable);
7172
if (this->isConnected_errorNotify_OutputPort(0)) {

0 commit comments

Comments
 (0)