...
Do not rely on implicit int
typing. C99, Section 6.7.2, "Type specifiers" states:
At least one type specifier shall be given in the declaration specifiers in each declaration, and in the specifier-qualifier list in each
struct
declaration and type name.
...
For more information on function declarations, see guideline DCL07-C. Include the appropriate type information in function declarators.
...
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
DCL31-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.
...
Wiki Markup |
---|
\[[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\] Section 6.7.2, "Type specifiers", Section 6.5.2.2, "Function calls" \[[ISO/IEC PDTR 24772|AA. Bibliography#ISO/IEC PDTR 24772]\] "OTR Subprogram Signature Mismatch" \[[Jones 082008|AA. Bibliography#Jones 08]\] \[[MISRA 042004|AA. Bibliography#MISRA 04]\] |
...