Skip to content

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
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,

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