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

fixed #12526 - corrected bailout in valueFlowConditionExpressions() / restored valueFlowBailoutIncompleteVar in daca #6153

Merged
merged 5 commits into from
Mar 21, 2024

Conversation

firewave
Copy link
Collaborator

@firewave firewave commented Mar 19, 2024

The bailout was moved out of an inner loop in a3617fe but it kept the previous break. This caused it to bail out completely instead of just skipping the function.

References for the added defines:
https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-createeventexa#parameters
https://learn.microsoft.com/en-us/windows/win32/secauthz/well-known-sids

@firewave
Copy link
Collaborator Author

I still need to add a test.

@firewave firewave changed the title fixed #12526 - corrected bail out in valueFlowConditionExpressions() fixed #12526 - corrected bailout in valueFlowConditionExpressions() Mar 19, 2024
@firewave firewave force-pushed the vf-f-bailour branch 5 times, most recently from 9e4edce to ddb0726 Compare March 19, 2024 07:31
@firewave firewave changed the title fixed #12526 - corrected bailout in valueFlowConditionExpressions() fixed #12526 - corrected bailout in valueFlowConditionExpressions() / restored valueFlowBailoutIncompleteVar in daca Mar 19, 2024
@@ -302,6 +302,7 @@ void g_new0_test()
int b;
};
// valid
// cppcheck-suppress valueFlowBailoutIncompleteVar
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This looks like a false positive. Will file a ticket if necessary after this has been merged,

@chrchr-github chrchr-github merged commit 14c24de into danmar:main Mar 21, 2024
64 checks passed
@firewave firewave deleted the vf-f-bailour branch March 21, 2024 23:11
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.

2 participants