...
Vulnerabilities that result from copying data to an undersized buffer often involve null-terminated byte strings (NTBS). Consult STR31-CPP. Guarantee that storage for strings character arrays has sufficient space for character data and the NULL null terminator for specific examples of this rule that involve NTBS.
...