Skip to content

Fix #95, reject PDUs with large bit set#179

Merged
astrogeco merged 1 commit intonasa:mainfrom
jphickey:fix-95-largefile-bit
Jan 18, 2022
Merged

Fix #95, reject PDUs with large bit set#179
astrogeco merged 1 commit intonasa:mainfrom
jphickey:fix-95-largefile-bit

Conversation

@jphickey
Copy link
Copy Markdown
Contributor

Describe the contribution
This bit indicates that the PDU has 64-bit size and offset fields. CF currently does not support large file sizes. It needs to reject
these packets as they will corrupt the data because they are not decoded properly (decode is fixed at 32 bit sizes).

Fixes #95

Testing performed
Build and sanity check CF
Force sending PDU with bit set, confirm CF rejects the PDU.

Expected behavior changes
CF informs the user that it received a PDU that it does not understand.

System(s) tested on
Ubuntu 21.10

Additional context
CF does not and did not support this feature, the only difference here is that it CF will now properly detect and reject a received PDU with this bit set, and inform the user of that event, instead of attempting to ingest it and doing so wrongly (likely corrupting data in the process).

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jan 13, 2022
This bit indicates that the PDU has 64-bit size and offset fields.
CF currently does not support large file sizes.  It needs to reject
these packets as they will corrupt the data because they are not
decoded properly (decode is fixed at 32 bit sizes).
@jphickey jphickey force-pushed the fix-95-largefile-bit branch from 82dc533 to aba9487 Compare January 13, 2022 21:56
@astrogeco astrogeco requested a review from skliper January 18, 2022 06:11
@astrogeco astrogeco merged commit c8736ac into nasa:main Jan 18, 2022
@astrogeco astrogeco added CCB:Approved and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Jan 19, 2022
@astrogeco
Copy link
Copy Markdown
Contributor

astrogeco commented Jan 19, 2022

CCB:2022-01-19 APPROVED

  • Even though this doesn't mean we support this functionality we avoid undefined behavior

@jphickey jphickey deleted the fix-95-largefile-bit branch March 11, 2022 15:48
@skliper skliper added this to the Draco milestone Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support (or not) for "Large" file mode

3 participants