WindhoverLabs / airliner

7 stars 3 forks source link

CF app didn't extract the right data size from the InPDU packet. #316

Open ynielson opened 1 year ago

ynielson commented 1 year ago

The Cfdp engine uses Big Endian byte order. The test InPDU Packet data was converted to Big Endian byte order. And Cfdp engine extracted the right data. But when CF app received a Input PDU, it extracted the PDU Data length from the PDU header(CF_PDU_Hdr_t) with Little Endian in function, "CF_SendPDUToEngine". (PduHdrPtr->PDataLen)

This caused too small/big data length information was sent to Cfdp engine.

cf_InPDU_length_bigendian_2023-01-27 15-24-06