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 #401, use valid size when calling CFE_MSG_Init #402

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Jul 25, 2023

Checklist (Please check before submitting)

Describe the contribution
Use the offset of the payload start, which by definition must include at least enough space for the primary header. This ensures that the value will pass any size check enforced in CFE_MSG_Init.

Fixes #401

Testing performed
Found and Tested as part of the stakeholder software delivery

Expected behavior changes
CF sends PDUs successfully (with valid msgid)

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

Use the offset of the payload start, which by definition must include at
least enough space for the primary header.  This ensures that the value
will pass any size check enforced in CFE_MSG_Init.
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jul 25, 2023
@dzbaker dzbaker added CCB:Approved and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Jul 27, 2023
@dzbaker dzbaker merged commit d401933 into nasa:main Jul 27, 2023
27 of 30 checks passed
@dmknutsen dmknutsen added this to the Equuleus milestone Aug 3, 2023
@jphickey jphickey deleted the fix-401-size-0 branch November 16, 2023 14:21
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.

CF invokes CFE_MSG_Init with size of 0
3 participants