Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added Java xref; not a big issue in java but mentioned it

...

This rule appears in the C++ Secure Coding Standard as ERR02-CPP. Avoid in-band error indicators.

This rule appears in the Java Secure Coding Standard as MET09-J. Always provide feedback about the resulting value of a method.

References

Wiki Markup
\[[Burch 06|AA. C References#Burch06]\]
\[[ISO/IEC 9899:1999|AA. C References#ISO/IEC 9899-1999]\] Section 6.2.4, "Storage durations of objects," and Section 7.20.3, "Memory management functions"
\[[ISO/IEC PDTR 24772|AA. C References#ISO/IEC PDTR 24772]\] "NZN Returning error status"
\[[ISO/IEC TR 24731-1:2007|AA. C References#ISO/IEC TR 24731-1-2007]\]

...