Versions Compared

Key

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

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Other Languages

This rule appears in the C++ Secure Coding Standard as MSC04-CPP. Use comments consistently and in a readable fashion.

References

Wiki Markup
\[[ISO/IEC 9899:1999|AA. C References#ISO/IEC 9899-1999]\] Section 6.4.9, "Comments," and Section 6.10.1, "Conditional inclusion"
\[[MISRA 04|AA. C References#MISRA 04]\] Rule 2.2, "Source code shall only use /\* ... \*/ style comments," Rule 2.3, "The character sequence /\* shall not be used within a comment," and Rule 2.4, "Sections of code should not be "commented out"
\[[Summit 05|AA. C References#Summit 05]\] [Question 11.19|http://c-faq.com/ansi/ifdefsyntax.html]

...