Space Packet Size Check #644
No reviewers
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: fsfw/fsfw#644
Loading…
Reference in New Issue
No description provided.
Delete Branch "meier/upstream-pus-distributor-bugfix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Space Packet Size Checkto WIP: Space Packet Size CheckWIP: Space Packet Size Checkto Space Packet Size CheckI think sending a PUS Service 1 Answer is not the correct way here. This is not an application layer problem. A package being too short (from a valid frame?) is an issue of the layers beneath. Additionally, Service 1 Answers without an SSC and Packet ID can not be attributed to a TC.
I agree that sending a PUS service 1 answer might be the wrong way to handle an invalid PUS packet but in my opinion the length check should still be part of the application layer because the CCSDS distributor does not know the packet structure of upper layers (e.g. the size of the PUS header). Maybe it would be better to just print a warning and discard the data. This would be enough to prevent the OBSW from running into a segmentation fault when an invalid PUS packet arrives at the PUS distributor.
I agree, this should never run into a segmentation fault. We could trigger an event in addition to the print of a warning if we expect this to happen only in rare circumstances.
I am working on a complete overhaul of the TMTC packet stack which comes with a complete test suite. I will look into ensuring this case is covered as well.
resolved by #655
Pull request closed