The software performs a calculation that can produce an integer
overflow or wraparound, when the logic assumes that the resulting value will
always be larger than the original value. This can introduce other weaknesses
when the calculation is used for resource management or execution
control.
The product subtracts one value from another, such that the
result is less than the minimum allowable integer value, which produces a value
that is not equal to the correct result.
The software performs an operation on a number that causes it
to be sign extended when it is transformed into a larger data type. When the
original number is negative, this can produce unexpected values that lead to
resultant weaknesses.