Versions Compared

Key

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

...

Tool

Version

Checker

Description

Compass/ROSE

 

 

Can detect simple violations of this rule. It needs to examine each expression and make sure that no variable is modified twice in the expression. Also no variable is modified once, and read elsewhere, with the single exception that a variable may appear on both the left and right of an assignment operator.

Coverity Prevent

5.0

EVALUATION_ORDER

Can detect the specific instance where Statement contains multiple side-effects on the same value with an undefined evaluation order because with different compiler flags or different compilers or platforms, the statement may behave differently.

ECLAIR

Include Page
ECLAIR_V
ECLAIR_V

evalordr

Fully implemented.

GCC

Include Page
GCC_V
GCC_V

 

Can detect violations of this rule when the -Wsequence-point flag is used.

Splint

3.1.1

 

 

    
    
    
    

Splint Version 3.1.1 can detect violations of this rule.

 

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

...