RULE-21-15
: Improve detection of compatible types
#573
Labels
Difficulty-Medium
A false positive or false negative report which is expected to take 1-5 days effort to address
false positive/false negative
An issue related to observed false positives or false negatives.
Impact-Medium
Standard-MISRA-C
Affected rules
RULE-21-15
Description
The query for this rule is currently too strict - it requires the types be identical (after stripping specifiers), instead of compatible. For example, it does not allow a combination of pointers and arrays, or array types with different sizes, or types which are compatible but not identical (e.g.
signed int
andint
.Example
The text was updated successfully, but these errors were encountered: