RULE-10-3
: Essential type of binary bitwise operations is incorrect
#786
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-10-1
RULE-10-3
RULE-10-4
RULE-10-5
RULE-10-6
RULE-10-7
RULE-10-8
RULE-12-2
Description
The
|
,&
and^
binary bitwise operations are currently incorrectly assigned the standard type as the essential type of the expression. Instead, their treatment under essential types should be similar to other arithmetic expressions, in that if both operands are consistently signed, the essential type is the has the same signedness, and a rank of the larger of the two operands.Example
The text was updated successfully, but these errors were encountered: