Skip to content

Sync Fork from Upstream Repo - #72

Merged
sthagen merged 8 commits into
sthagen:mainfrom
cppcheck-opensource:main
Jun 25, 2021
Merged

Sync Fork from Upstream Repo#72
sthagen merged 8 commits into
sthagen:mainfrom
cppcheck-opensource:main

Conversation

@sthagen

@sthagen sthagen commented Jun 25, 2021

Copy link
Copy Markdown
Owner

No description provided.

pfultz2 and others added 8 commits June 24, 2021 08:22
…#3305)

This fixes the crash on with struct fields containing unknown types
reported on the forum:
https://sourceforge.net/p/cppcheck/discussion/general/thread/d64551cc55/#5f0f

The suggested patch doesn't handle the cases when there are struct
fields with arrays containing unknown types. So the addon will not
generate warnings in these cases. The problem is that Cppcheck doesn't
generate valueType-pointer information for unknown types in the dump
file. When adding this in symboldatabase.cpp, MISRA addon will generate
a lot of false positives because we depend on the null value of
valueType.

So I suppose it better to left this as is, to don't break the addon for
such rare cases.
@sthagen
sthagen merged commit da830fd into sthagen:main Jun 25, 2021
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.

6 participants