RULE-18-1
: Picky about how pointers are tracked, doesn't consider derefs before 1 from end, or array-to-pointer conversions
#840
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.
false-negative
An issue representing a false negative report.
Impact-Medium
Standard-AUTOSAR
Standard-MISRA-C
Affected rules
RULE-18-1
M5-0-16
Description
The query expects that as pointers are made they are assigned to variables, and assumes that pointers into arrays always use
ArrayExpr
(egx[y]
). It also allows dereferencing or indexing past 1 of an array -- its OK to make a pointer to 1 past the array, but dereferencing is not defined.Example
The text was updated successfully, but these errors were encountered: