Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

EXP18-C

low

likely

medium

P6

L2

Automated Detection

Tool

Version

Checker

Description

Section

LDRA tool suite

Include Page
c:LDRA_Vc:
LDRA_V

 

 

Section

GCC

Include Page
c:GCC_Vc:
GCC_V

 

Section

can detect violations of this recommendation when the -Wall flag is used.

Section

Compass/ROSE

 

 

Section

could detect violations of this recommendation by identifying any assignment expression as the top-level expression in an if or while statement.

Section

Klocwork

Include Page
c:Klocwork_Vc:
Klocwork_V
Section

ASSIGCOND.GEN ASSIGCOND.CALL

 

...

MITRE CWE: CWE-480, "Use of Incorrect Operator"

Bibliography

Wiki Markup\[[Hatton 1995|AA. Bibliography#Hatton 95]\] Section 2.7.2, "Errors of omission and addition"

...

EXP17-C. Do not perform bitwise operations in conditional expressions      03. Expressions (EXP)