-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nasa#44, instantiate properly sized and aligned buffers
For unit unit tests that invoke CF PDU processing functions on either input or output, ensure that the locally instantiated "dummy" PDU is both sized sufficiently and aligned correctly. This removes quite a bit of questionable casting between the buffer types, and fixes a number of stack-smashing issues. For completeness, this also clears (memset to 0) all instantiated buffers, before setting values in the test. This ensures that the entire message structure has predictable/repeatable content.
- Loading branch information
Showing
6 changed files
with
954 additions
and
729 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.