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 #44, #46, instantiate properly sized and aligned buffers #76

Merged
merged 1 commit into from
Dec 8, 2021

Commits on Dec 1, 2021

  1. 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.
    jphickey committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    95612b0 View commit details
    Browse the repository at this point in the history