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

EXP05-J

medium

probable

medium

P8

L2

Related Guidelines

CERT C Secure Coding Standard: EXP19-C. Use braces for the body of an if, for, or while statement

Bibliography

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ea58b471-b957-431e-88ad-f6f1654e15b7"><ac:plain-text-body><![CDATA[

[[GNU 2010AA. References#GNU 10]]

[Coding Standards, Section 5.3, "Clean Use of C Constructs"

http://www.gnu.org/prep/standards/standards.html#Syntactic-Conventions]

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

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ea64845b-5a07-4347-a246-cd75b2fd1c2c"><ac:plain-text-body><![CDATA[

[[Rogue 2000AA. References#Rogue 2000]]

Rule 76: Use block statements instead of expression statements in control flow constructs]]></ac:plain-text-body></ac:structured-macro>

...

EXP51-J. Do not perform assignments in conditional statements      02. Expressions (EXP)