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 #75, Moved command validation out of command functions #76

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

havencarlson
Copy link
Contributor

Checklist (Please check before submitting)

Describe the contribution
Fixes #75 , validate command before calling the command function instead of after.

Testing performed
Unit testing

Expected behavior changes
no impact to behavior

System(s) tested on

  • OS: Ubuntu 18.04

Contributor Info - All information REQUIRED for consideration of pull request
Haven Carlson - NASA

} /* end MM_WriteFileHeaders if */

/* Close dump file */
if ((OS_Status = OS_close(FileHandle)) != OS_SUCCESS)

Check warning

Code scanning / CodeQL

Side effect in a Boolean expression

This Boolean expression is not side-effect free.
/* Verify command packet length */
if (MM_VerifyCmdLength(&BufPtr->Msg, ExpectedLength))
/* Resolve symbolic address */
if (MM_ResolveSymAddr(&(DestSymAddress), &DestAddress) == true)

Check warning

Code scanning / CodeQL

Side effect in a Boolean expression

This Boolean expression is not side-effect free.
/* Resolve the symbolic address in command message */
if (MM_ResolveSymAddr(&(DestSymAddress), &DestAddress) == true)
/* Resolve the symbolic address in command message */
if (MM_ResolveSymAddr(&(DestSymAddress), &DestAddress) == true)

Check warning

Code scanning / CodeQL

Side effect in a Boolean expression

This Boolean expression is not side-effect free.
@dzbaker dzbaker merged commit a4d4d0c into nasa:main Sep 1, 2023
17 checks passed
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.

Apps should check/verify msg BEFORE calling handler
2 participants