Software Security

Table of Contents

Type confusion (C++)

C++ provides classes, like structs that tie data to functions. Class instance known as ‘object’.

Stack objects have constructor and destructor automatically called.

Heap objects managed with new/delete which call constructor/destructor.

Typecasts:

Type confusion: object may be cast to wrong type, members read and written according to the wrong type