Modern C++ Secure Coding Practices: Const Correctness

by Nick Cano

This course will show you attacks hackers use against C++ programs and teach you how const correctness can prevent many of the bugs these attacks leverage.

What you'll learn

Attackers often utilize small and otherwise unnoticed coding mistakes to hack applications. In this course, Modern C++ Secure Coding Practices: Const Correctness, you'll learn how these attacks take place and how you can prevent them from using const correctness. First, you'll take a look at how to properly handle pointers. Next, you'll discover how you can avoid accidentally assigning to variables. Finally, you'll explore strategies which can aid you in being const correct. When you're finished with this course, you'll have a foundational knowledge of const correctness that will help you move forward and write more secure and future-proof code.

Table of contents

Course Overview
1min
What Is Const Correctness?
4mins
Bug Class: Control Flow Hijacking via Accidental Assignment
13mins
Const Correctness as a Best Practice
4mins

About the author

Nick Cano is a published technical author, a Senior Security Architect at Cylance, and a life-long hacker. Nick specializes in software security, which requires daily use of his strong background in software development and reverse engineering.

Ready to upskill? Get started