National Institute of Standards and Technology
Package illustrating a test case

Test case 1503

Description

The semantics of virtual functions. As most C++ compilers implement virtual functions using a Virtual Function Table (VTBL). The VTBL is an array of function pointers that is used at runtime for dispatching virtual function calls. It"s possible to overwrite function pointers in the VTBL or change the virtual pointer to another arbitrary VTBL.
From "Secure Coding in C and C++" by Robert C. Seacord.
Page 87, Figure 3-10

Have any comments on this test case? Please, send us an email.