Versions Compared

Key

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

...

Failure to understand the evaluation order of expressions containing side effects can result in unexpected output.

Recommendation Rule

Severity

Likelihood

Remediation Cost

Priority

Level

EXP05-J

low

unlikely

medium

P2

L3

...

CERT C Secure Coding Standard

EXP30-C. Do not depend on order of evaluation between sequence points

CERT C++ Secure Coding Standard

EXP30-CPP. Do not depend on order of evaluation between sequence points

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="12559a9a553818c9-ec69b19e-4f54464c-b0848a7d-e3d35deda0ac36f61d88ec5c"><ac:plain-text-body><![CDATA[

[ISO/IEC TR 24772:2010

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

"Side?effects and Order of Evaluation [SAM]"

]]></ac:plain-text-body></ac:structured-macro>

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="2f9b3512454a2b57-8a736c92-4d474902-b051bf29-a0c7701b8d4de6b88f98f152"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

[§15.7, "Evaluation Order"

http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.7]

]]></ac:plain-text-body></ac:structured-macro>

 

§15.7.3, "Evaluation Respects Parentheses and Precedence"

...