Stack Alignment
Last updated
Last updated
In Linux, GCC sets the de facto standard for calling conventions. Since GCC version 4.5, the stack must be aligned to a 16-byte boundary when calling a function (previous versions only required a 4-byte alignment).
In ROP, we have to consider stack alignment if the payload fails. My explanation: