Versions Compared

Key

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

...

That is, objects of type unsigned char may have no padding bits and thus no trap representation. Thus, non-bit field objects of any type may be copied into an array of unsigned char (e.g.for example, via memcpy()) and have their representation examined one byte at a time.

...

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

Related Guidelines

CERT C++ Secure Coding Standard: STR00-CPP. Represent characters using an appropriate type

Bibliography

Wiki Markup\[[ISO/IEC TR 24731-1:2007

|AA. Bibliography#ISO/IEC TR 24731-1-2007]\] \[[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\] Section 7.1.1, "Definitions of terms," and Section 7.21, "String handling <{{string.h}}>"

Bibliography

Wiki Markup

\[[Seacord 2005a|AA. Bibliography#Seacord 05a]\] Chapter 2, "Strings"

...