Versions Compared

Key

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

...

Tool

Version

Checker

Description

Section

Coverity Prevent

Include Page
c:Coverity_Vc:
Coverity_V
Section

CONSTANT_EXPRESSION_RESULT

Section

can detect the specific instance where bitwise operator is used in place of logical operator or vice versa. The behavior might be desirable in some situation, so further verification is necessary.

...

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

Bibliography

Wiki Markup\[Hatton 1995\] Section 2.7.2, "Errors of omission and addition"

...

      03. Expressions (EXP)      EXP18-C. Do not perform assignments in selection statements