CERT-FLP32-C_a
In this section:
Synopsis
Prevent or detect domain and range errors in math functions.
Enabled by default
Yes
Severity/Certainty
Medium/Medium

Full description
Programmers can prevent domain and pole errors by carefully bounds-checking the arguments before calling mathematical functions and taking alternative action if the bounds are violated.
Coding standards
- CERT FLP32-C
Prevent or detect domain and range errors in math functions
Code examples
The following code example fails the check and will give a warning:
void example(void) {}
The following code example passes the check and will not give a warning about this issue:
void example(void) {}