...
Using the object representation of a floating-point value for comparisons can lead to incorrect equality results, which can lead to unexpected behavior.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
FLP37-C | Low | Unlikely | Medium | P2 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| LDRA tool suite |
| 618 S | Enhanced Enforcement | ||||||
| Parasoft C/C++test |
| BD-PB-ARRAY, MISRA-101, CODSTA-190 | Implemented | ||||||
| PRQA QA-C | 9.1 | 5026 |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Bibliography
| [ISO/IEC 9899:2011] | Annex F, "IEC 60559 floating-point arithmetic" |
...
...