Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

API02-EX1: Functions that can guarantee via their runtime-constraint handlers that no out-of-bounds read or write occurs may omit the maximum-elements argument. For instance, the s2 parameter to strcat_s() needs no max parameter.

Code Block
bgColor#ccccff
langc
errno_t strcat_s(char * restrict s1, rsize_t s1max, const char * restrict s2);

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Related Guidelines

Bibliography

...

]Annex K (normative) Bounds-checking interfaces

ISO/IEC TR 24731-1:2007

...

 

...