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

Minor coverity fixes #2677

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Minor coverity fixes #2677

wants to merge 2 commits into from

Conversation

atobiszei
Copy link
Collaborator

🛠 Summary

JIRA/Issue if applicable.
Describe the changes.

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

@atobiszei atobiszei force-pushed the atobisze_coverity_minor_fixes branch 5 times, most recently from 21ba68c to 6f87458 Compare September 11, 2024 14:26
@@ -296,7 +296,7 @@ class MediapipeGraphExecutor {
numberOfPacketsCreated),
"partial deserialization of subsequent requests", isSuccess);
} else {
OVMS_WRITE_ERROR_ON_FAIL_AND_CONTINUE(pstatus, "validate subsequent requests", isSuccess);
OVMS_WRITE_ERROR_ON_FAIL_AND_CONTINUE(std::move(pstatus), "validate subsequent requests", isSuccess);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it safe to use std move here? In case this macro will ever use first parameter twice, the pstatus will get moved twice, which is undefined behavior @atobiszei

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is assigned to new variable,

@atobiszei atobiszei removed the on-hold label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants