...
Testing for exact values runs the risk of a loop terminating much longer than expected or never terminating at all.
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
MSC21-C | Low | Unlikely | Low | P3 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||
---|---|---|---|---|---|---|---|
Astrée |
|
Supported, but no explicit checker | |||||||||
CodeSonar |
| LANG.STRUCT.LOOP.HR | High risk loop | ||||||
Compass/ROSE |
LDRA tool suite |
| 510 S | Partially implemented | ||||||
Polyspace Bug Finder | R2016a | Loop controlled by a value from an unsecure source Value from an unsecure source changes sign | |||||||
PVS-Studio | 6.22 | V621 | General analysis rule |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
...
...