Skip to content

Secure Programming Practices: Part 2

Published on

Become familiar with several concepts from the C++ Core Guidelines, including R.1: Manage resources automatically using resource handles and RAII (Resource Acquisition Is Initialization), R.11: Avoid calling new and delete explicitly, ES.20: Always initialize an object, ES.48: Avoid casts, and ES.49: If you must use a cast, use a named cast. Memory handling and resource management, in general, are a rich source of bugs and causes many security issues. Using idioms like RAII to manage resource lifetimes can eliminate many of these issues.