...
| Code Block | ||||
|---|---|---|---|---|
| ||||
void f(size_t begin, size_t step) {
if (0 < step) {
intsize_t i;
for (i = begin; i <= INTSIZE_MAX - step; i += step) {
/* ... */
}
}
}
|
...
Recommendation | Severity | Likelihood | Detectable | RepairableRemediation Cost | Priority | Level |
|---|---|---|---|---|---|---|
MSC21-C | Low | Unlikely | No | NoLow | P3P1 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Astrée |
| Supported | , but no explicit checker: Astrée reports potential infinite loops. | ||||||||||||
| CodeSonar |
| LANG.STRUCT.LOOP.HR | High risk loop | ||||||||||||
| Compass/ROSE | |||||||||||||||
| LDRA tool suite |
| 510 S | Partially implemented | ||||||||||||
| PC-lint Plus |
| 440, 442, 443, | Partially supported | ||||||||||||
| Polyspace Bug Finder |
| R2016a |
| Checks for loop | Loopbounded with tainted value | (rec. partially covered) | |||||||||
| PVS-Studio |
| 6.22 | V621 | General analysis rule
| V621 | ||||||||||
| Security Reviewer - Static Reviewer |
| ctuOneDefinitionRuleViolation | Fully implemented |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
...