函数调用


函数调用

程序执行前

image-20220304161707737

执行system函数时

image-20220304161934156

接下来需要调用system需要的arg

image-20220304162101047

这时候的system的栈帧

retuen add = exit()

arg = "/bin/sh"

exit

image-20220304162402612

system函数同

相关