WCU / Cybersecurity
~/CSC 472/Class 02/KP 09
Class 02 · KP 09 / 23

Anatomy of a Stack Frame

higher addressessaved return addresshijack targetsaved RBPchar buffer[ ]local variablelower addresses (RSP)overflowwrites up
A stack frame: overflowing the buffer overwrites the saved return address.

{ A too-long write into buf climbs past the saved RBP and

overwrites the saved return address.}