Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
int i;
int max;
...
if ( (i >= 0 && (i + 1) <= max) ) {
  i++;
...
}

Risk Assessment

Attempting to modify an object that is the second operand to the logical OR or AND operator may cause that object to take on an unexpected value. This can lead to unexpected program behavior.

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

EXP02-A

1 (low)

1 (unlikely)

3 (low)

P3

L3

...