...
CERT C++ Secure Coding Standard: ERR02-CPP. Avoid in-band error indicators
The CERT Oracle Secure Coding Standard for Java: MET09-J. Always provide feedback about the resulting value of a method
ISO/IEC 9899:1999 Section 6.2.4, "Storage durations of objects," and Section 7.20.3, "Memory management functions"
...