Versions Compared

Key

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

...

Code Block
bgColor#CCCCFF
char ch = 't';
if ( ( ch == 'a' ) || ( ch == 'b') || ( ch == 'c') ){
...
}

Exceptions

It is ok to assume consecutive value for characters like a~z in most platform, where ASCII or Unicode is used. This rule is to raise awareness of platform portability if you migrate the code from ASCII system to a non-ASII system.

Risk assesment

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

STR09-C

low

unlikely

low

P3

L3

...