...
Note that it is a common mistake to choose a reserved name for the name of the macro used in the inclusion guard. See guideline DCL37-C. Do not use identifiers that are reserved for the implementation.
...
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
PRE06-C | low | unlikely | low | P3 | L3 |
Automated Detection
...
Tool | Version | Checker | Description |
---|---|---|---|
|
...
|
|
|
Related Vulnerabilities
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 : PRE06-CPP. Enclose header files in an inclusion guard.
Bibliography
Wiki Markup |
---|
\[[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\] Section 6.10, "Preprocessing directives," Section 5.1.1, "Translation environment," and Section 7.1.2, "Standard headers" \[[MISRA 042004|AA. Bibliography#MISRA 04]\] Rule 19.5 \[[Plum 851985|AA. Bibliography#Plum 85]\] Rule 1-14 |
...