Skip to content

Fix #13989 FN uninitMemberVar with iterator members#7649

Merged
chrchr-github merged 5 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_13989
Jul 7, 2025
Merged

Fix #13989 FN uninitMemberVar with iterator members#7649
chrchr-github merged 5 commits intocppcheck-opensource:mainfrom
chrchr-github:chr_13989

Conversation

@chrchr-github
Copy link
Copy Markdown
Collaborator

No description provided.

@chrchr-github chrchr-github reopened this Jul 7, 2025
@chrchr-github
Copy link
Copy Markdown
Collaborator Author

To be merged after #7648

@firewave
Copy link
Copy Markdown
Collaborator

firewave commented Jul 7, 2025

This is correctly detected if you encounter this in regular code (i.e. uninitvar). I wonder if there is logic which could be shared.

@chrchr-github
Copy link
Copy Markdown
Collaborator Author

This is correctly detected if you encounter this in regular code (i.e. uninitvar). I wonder if there is logic which could be shared.

Probably not, since CheckClass doesn't use ValueFlow.

@firewave
Copy link
Copy Markdown
Collaborator

firewave commented Jul 7, 2025

Probably not, since CheckClass doesn't use ValueFlow.

Makes sense.

Please merge #7648 before this so the crash fix is properly attributed.

@chrchr-github chrchr-github merged commit 1dd1575 into cppcheck-opensource:main Jul 7, 2025
60 checks passed
@chrchr-github chrchr-github deleted the chr_13989 branch July 7, 2025 11:29
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