Skip to content

Fix #11561 FN nullPointer with unnamed parameter#4805

Merged
danmar merged 1 commit intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix11561
Feb 23, 2023
Merged

Fix #11561 FN nullPointer with unnamed parameter#4805
danmar merged 1 commit intocppcheck-opensource:mainfrom
chrchr-github:chr_Fix11561

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/valueflow.cpp
if (!arg || !Token::Match(arg->typeStartToken(), "%type% %name% ,|)")) {
if (!arg) {
if (tokenlist->getSettings()->debugwarnings)
bailout(tokenlist, errorLogger, tok, "function return; unhandled argument type");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We should probably do a selfcheck run with all the bailouts enabled and take a look at some of the non-frequent ones if those are legit. We could also split some of those off if it might be helpful so they show up. Or split of the very common ones instead.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Okay - will take a look at that when my backlog gets more manageable.

@danmar danmar merged commit 96887c8 into cppcheck-opensource:main Feb 23, 2023
@chrchr-github chrchr-github deleted the chr_Fix11561 branch March 13, 2023 11:37
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