-
Notifications
You must be signed in to change notification settings - Fork 202
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 #1677, Add Message API Functional Test #1740
Fix #1677, Add Message API Functional Test #1740
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! See requested changes... those values can all be zero (they aren't pointers).
@@ -90,7 +90,7 @@ CFE_Status_t CFE_MSG_GetEDSVersion(const CFE_MSG_Message_t *MsgPtr, CFE_MSG_EDSV | |||
*-----------------------------------------------------------------*/ | |||
CFE_Status_t CFE_MSG_SetEDSVersion(CFE_MSG_Message_t *MsgPtr, CFE_MSG_EDSVersion_t Version) | |||
{ | |||
if (MsgPtr == NULL || (Version > (CFE_MSG_EDSVER_MASK >> CFE_MSG_EDSVER_SHIFT))) | |||
if (MsgPtr == NULL || Version == NULL || (Version > (CFE_MSG_EDSVER_MASK >> CFE_MSG_EDSVER_SHIFT))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version can be 0...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! See requested changes... those values can all be zero (they aren't pointers).
Thanks...
Sure, I'll change that back quickly.
Commit message typo - it should reference #1677. |
I also noticed, I will push it immediately |
cb1ff23
to
e8164f5
Compare
I have not yet managed to run a MemoryProfiler with the unit test to find out what checksum an empty message with id 1 has. Could someone help me with this? (for the ut of GenerateChecksum) |
6eef28a
to
f50791a
Compare
f50791a
to
cc8c9a1
Compare
Duplicate of #1745 |
See comments on #1745 - really GenerateChecksum just inserts the correct value into the message, so verification is just to run ValidateChecksum before and after and make sure it passes after. There actually is no GetChecksum API anymore since we couldn't come up with a use-case from an application context. |
Describe the contribution
Contributor Info - All information REQUIRED for consideration of pull request
Paul Oberosler, Individual