...
According to the C Standard [ISO/IEC 9899:2011], linkage is determined as follows:
...
Use of an identifier (within one translation unit) classified as both internally and externally linked causes undefined behavior. See also undefined behavior 8 of in Appendix J of the C Standard. A translation unit includes the source file together with its headers and all source files included via the preprocessing directive #include.
...
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
...
ISO/IEC 9899:2011 Section 6.2.2, "Linkages of identifiers"
...
| MISRA-C | Rule 8.1 |
Bibliography
| [Banahan 2003] | Section 8.2, "Declarations, definitions and accessibility" |
|---|---|
| [ISO/IEC 9899:2011] | Section 6.2.2, "Linkages of Identifiers" |
| [Kirch-Prinz 2002] |