...
Code Block | ||||
---|---|---|---|---|
| ||||
enum { MAX = 100 };
int helper(int i) {
/* Perform some computation based on i. */
}
int main(void) {
size_t i;
int out[MAX];
for (i = 0; i < MAX; i++) {
out[i] = helper(i);
}
/* ... */
}
|
...
Code Block | ||||
---|---|---|---|---|
| ||||
enum {MAX = 100};
static int helper(int i) {
/* Perform some computation based on i. */
}
int main(void) {
size_t i;
int out[MAX];
for (i = 0; i < MAX; i++) {
out[i] = helper(i);
}
/* ... */
}
|
...
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
DCL15-C | lowLow | unlikelyUnlikely | lowLow | P3 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
| CC2.DCL15 | Fully implemented | |||||||
| 27 D | Fully implemented | |||||||
PRQA QA-C |
| 1504 | Fully implemented | ||||||
|
|
|
...