A4-7-1
: Incorporate CERT C integer data loss rules
#491
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-High
Standard-AUTOSAR
Affected rules
A4-7-1
Description
The
IntegerExpressionLeadToDataLoss.ql
query should be replaced by the more refined queries from CERT, specifically INT30-C (UnsignedIntegerOperationsWrapAround.ql
), INT31-C (IntegerConversionCausesDataLoss.ql
), INT32-C (SignedIntegerOverflow.ql
) and INT34-C (ExprShiftedByNegativeOrGreaterPrecisionOperand.ql
). These provide:The text was updated successfully, but these errors were encountered: