...
Operating System | How to Handle Floating-Point Errors |
---|---|
Linux | Use the C floating-point exception functions. |
Windows | Use either the C floating-point exception functions or structured exception handling through |
Noncompliant Code Example
...
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
Compass/ROSE |
|
| Could detect violations of this rule by ensuring that floating-point operations are surrounded by | ||||||
PRQA QA·CQA-C |
| Partially implemented |
...
MITRE CWE: CWE-369, "Divide by zero"
Bibliography
[IEEE 754]
[Intel 2001]
[Keil 2008]
[MSDN] "fpieee_flt (CRT)"
[Open Group 2004] "fenv.h
- Floating-point environment"
[SecurityFocus 2007]
...