...
| Code Block | ||||
|---|---|---|---|---|
| ||||
/* In bashline.h */
extern char * bash_groupname_completion(const char *, int);
/* In a.c */
#include "bashline.h"
void f(const char *s, int i) {
bash_groupname_completion(s, i);
}
/* In b.c */
int bash_groupname_completion_funct; |
Risk Assessment
Rule | Severity | LikelihoodRemediation Cost | Detectable | Repairable | Priority | Level |
|---|---|---|---|---|---|---|
DCL40-C | Low | Unlikely | Yes | MediumNo | P2 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Astrée |
| type-compatibility type-compatibility-link distinct-extern | Fully checked | ||||||
| Axivion Bauhaus Suite |
| CertC-DCL40 | Fully implemented | ||||||
| CodeSonar |
| LANG.STRUCT.DECL.IF LANG.STRUCT.DECL.IO | Inconsistent function declarations Inconsistent object declarations | ||||||
| Coverity |
| MISRA C 2012 Rule 8.4 | Implemented | ||||||
| Cppcheck Premium |
| premium-cert-dcl40-c | |||||||
| Helix QAC |
| C0776, C0778, C0779, C0789, C1510 C++1510 | Fully implemented | ||||||
| Klocwork |
| MISRA.FUNC.NOPROT.DEF.2012 | Fully implemented | ||||||
| LDRA tool suite | 8.5.4 | 1 X, 17 D | Partially implemented | ||||||
| Parasoft C/C++test |
| CERT_C-DCL40-a | All declarations of an object or function shall have compatible types | ||||||
| Parasoft Insure++ | Runtime analysis | ||||||||
| PC-lint Plus |
| 18, 621, 793, 4376 | Fully supported | ||||||
| Polyspace Bug Finder |
| Checks for declaration mismatch (rule fully covered) | |||||||
| RuleChecker |
| type-compatibility type-compatibility-link distinct-extern
| Fully checked | ||||||
| Security Reviewer - Static Reviewer |
| C26 | Fully implemented | ||||||
| TrustInSoft Analyzer |
| incompatible declaration | Exhaustively verified. |
...