CertC++-STRΒΆ

Characters and Strings

Nested Rules

CertC++-STR30

Do not attempt to modify string literals

CertC++-STR31

Guarantee that storage for strings has sufficient space for character data and the null terminator

CertC++-STR32

Do not pass a non-null-terminated character sequence to a library function that expects a string

CertC++-STR34

Cast characters to unsigned char before converting to larger integer sizes

CertC++-STR37

Arguments to character-handling functions must be representable as an unsigned char

CertC++-STR38

Do not confuse narrow and wide character strings and functions

CertC++-STR50

Guarantee that storage for strings has sufficient space for character data and the null terminator

CertC++-STR51

Do not attempt to create a std::string from a null pointer

CertC++-STR52

Use valid references, pointers, and iterators to reference elements of a basic_string

CertC++-STR53

Range check element access

Options