...
This non-compliant code example can result in a signed integer overflow during the unary negation of the signed operand si1
. If this behavior is unanticipated, the resulting value may be used to allocate insufficient memory for a subsequent operation or in some other manner that could lead to an exploitable vulnerability.
Code Block | ||
---|---|---|
| ||
signed int si1, result; result = -si1; |
...