Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add reference

...

This rule appears in the C++ Secure Coding Standard as MEM04-CPP. Do not perform zero length allocations.

References

Wiki Markup
\[[Vanegue 10|AA. References#Vanegue 10]\] Julien Vanegue. [Automated vulnerability analysis of zero sized heap allocations|http://hackitoergosum.org/wp-content/uploads/2010/04/HES10-jvanegue_zero-allocations.pdf]. April 2010.
\[[ISO/IEC 9899:1999|AA. References#ISO/IEC 9899-1999]\] Section 7.20.3, "Memory Management Functions"
\[[MITRE 07|AA. References#MITRE 07]\] [CWE ID 687|http://cwe.mitre.org/data/definitions/687.html], "Function Call With Incorrectly Specified Argument Value"
\[[Seacord 05|AA. References#Seacord 05]\] Chapter 4, "Dynamic Memory Management"

...