...
Code Block | ||
---|---|---|
| ||
float x, result; if (isless(x, 0)){ /* handle domain error */ } result = sqrt(x); |
Risk Assessment
Failure to properly verify arguments supplied to math functions may result in unexpected results.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
FLP32-C | 2 (medium) | 2 (probable) | 2 (medium) | P8 | L2 |
...