
exploitAtion 129
that the last datum added (or “pushed”) to the stack is the first datum
pulled (or “popped”) from the stack. In the Intel implementation of
a stack and various other processor platforms, local functions use the
stack for temporary variable storage, parameter passing, and code flow
execution management. Exhibit 3-7 illustrates the typical layout for
an Intel stack used to call a function and the called function.
e Intel x86 processor uses two special registers for stack man-
agement: the stack pointer (ESP) and the base pointer (EBP). e
processor uses the stack pointer to specify the memory address of
the last memory pushed on ...