...
- Source and object code can significantly increase in size, perhaps some sources suggest by as much as 30 as 30 to 40 percent [Saks 2007b].
- All function return values must be checked (see ERR33-C. Detect and handle standard library errors).
- Functions should not return other values if they return error indicators (see ERR02-C. Avoid in-band error indicators).
- Any function that allocates resources must ensure they are freed in cases where errors occur.
...
Tool | Version | Checker | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Compass/ROSE | Could detect violations of this rule merely by reporting functions that call | ||||||||
| Parasoft C/C++test |
| CERT_C-ERR05-a | The 'abort()' function from the 'stdlib.h' or 'cstdlib' library shall not be used | ||||||
| Security Reviewer - Static Reviewer |
| C32 | Fully implemented |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
...