Skip to content

Secure Programming Practices: Part 1

Published on

Become familiar with several concepts from the C++ Core Guidelines, including CPL.1: Prefer C++ to C, SL.str.1: Use std::string to own character sequences, SL.str.5: Use std::byte to refer to byte values that do not necessarily represent characters, ES.27: Use std::array or stack_array for arrays on the stack, and SL.con.3: Avoid bounds errors. Many of the most vulnerable programming constructs in C++ are in pure C. A large part of newer C++ language features are to mitigate these types of bugs.