A4-7-1
: Exclude pointer increment/decrement
#379
Labels
Difficulty-Low
A false positive or false negative report which is expected to take <1 day effort to address
false positive/false negative
An issue related to observed false positives or false negatives.
Impact-High
user-report
Issue reported by an end user of CodeQL Coding Standards
Affected rules
A4-7-1
Description
This query is reporting
++
and--
on pointers, however the rule is restricted to data loss on integer operations.In addition, the message currently says:
Which is incorrect because we can also report unary expressions.
Example
pointer++; // Should be ignored
The text was updated successfully, but these errors were encountered: