...
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
\[[ISO/IEC TR 24731-1:2007 Wiki Markup
|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" |
...