Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

jphickey
Copy link
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).
@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
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