Pointers to Variables on Stack

Explore how the compiler places variables on the stack and find out how to exploit a simple vulnerability and hack an application.

Creating pointers recap

In the first chapter, we created pointers to variables and used them to change or read the values in those variables. The variables get placed on the stack, so we already had the first taste. But, to refresh our knowledge, let’s write one more example:

Get hands-on with 1200+ tech skills courses.