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

9575: false positive in fclose #2540

Merged
merged 1 commit into from
Feb 17, 2020
Merged

9575: false positive in fclose #2540

merged 1 commit into from
Feb 17, 2020

Conversation

Ken-Patrick
Copy link
Contributor

Fix false positive introduced by
0b7649c

Only return the function token from checkTokenInsideExpression when it
might be one the argument (hence keeping a pointer to one of them).
Otherwise, we can directly skip to the token after the function call.

Ken-Patrick referenced this pull request Feb 16, 2020
* Fix 9298

Tell cppcheck that strcpy returns its first argument, and use that
knowledge in checkTokenInsideExpression.

* Add missing unit tests in cmake
Fix false positive introduced by
danmar@0b7649c

Only return the function token from checkTokenInsideExpression when it
might be one the argument (hence keeping a pointer to one of them).
Otherwise, we can directly skip to the token after the function call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants