标签: c memory-address buffer-overflow
最近,我进行了缓冲区溢出研究。下面是C代码。
#include <stdio.h> void caller(); void callee(int arg); { callee(8); } void callee(int arg) { int buffer[3] = { 5, 6, 7 }; third(8); }
下面是调试工具获得的相应指令。 我们可以看到SUB ESP,28,为什么尺寸为28?哪个因素影响它?
SUB ESP,28