Skip to content

Fixes #13962: fi can be nullptr#7623

Merged
danmar merged 2 commits intocppcheck-opensource:mainfrom
autoantwort:13962-fix-crash
Jun 30, 2025
Merged

Fixes #13962: fi can be nullptr#7623
danmar merged 2 commits intocppcheck-opensource:mainfrom
autoantwort:13962-fix-crash

Conversation

@autoantwort
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread lib/cppcheck.cpp Outdated
@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Jun 29, 2025

Thanks for the fix.

A test would be really nice though. Do you see this when checking a proprietary project or some open source project?

@autoantwort
Copy link
Copy Markdown
Contributor Author

A proprietary project

@danmar danmar merged commit 06b490f into cppcheck-opensource:main Jun 30, 2025
53 checks passed
@danmar
Copy link
Copy Markdown
Collaborator

danmar commented Jun 30, 2025

ok :-(
I don't remember if it's by intention that fi can be nullptr maybe it was a bug.. but at least now there won't be a crash.

winterz pushed a commit to winterz/cppcheck that referenced this pull request Jun 30, 2025
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