...
- Source and object code can significantly increase in size, perhaps by as much as 30 to 40 percent [Saks 2007b].
- All function return values must be checked. (See void MEM32-C. Detect and handle memory allocation 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.
...
Related Guidelines
CERT C++ Secure Coding Standard | ERR05-CPP. Application-independent code should provide error detection without dictating error handling |
...