Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

我想要模拟一下 csapp 的 buf 溢出实验,编写 cc 文件,然后,编译,通过输入的字符串改变函数的返回地址,我尝试使用了

-fno-stack-protector

-fno-stack-check

-fno-stack-clash-protection

-fno-stack-limit

都不行,只要修改了函数的返回地址,就直接段错误,大家知道该如何编译 或者 csapp 的 buffer-lab 的编译选项吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
823 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...