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

EXP04-J

low

likely

medium

P6

L2

Related Guidelines

CERT C Secure Coding Standard

EXP18-C. Do not perform assignments in selection statements

CERT C++ Secure Coding Standard

EXP19-CPP. Do not perform assignments in conditional expressions

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="57da3430-4942-4237-9ffb-85bed887cefb"><ac:plain-text-body><![CDATA[

[ISO/IEC TR 24772:2010

http://www.aitcnet.org/isai/]

"Likely Incorrect Expression [java:KOA]" ]]></ac:plain-text-body></ac:structured-macro>

MITRE CWE

CWE ID 480, "Use of Incorrect Operator"

Bibliography

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="50f6035d-fa0c-4650-8c6e-8e2022b43eb9"><ac:plain-text-body><![CDATA[

[[Hatton 1995AA. References#Hatton 95]]

Section 2.7.2, "Errors of omission and addition"]]></ac:plain-text-body></ac:structured-macro>

...

      02. Expressions (EXP)      EXP05-J. Do not write more than once to the same variable within an expression