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

Categories

0 votes
805 views
in Technique[技术] by (71.8m points)

g++ 如何关闭对函数返回地址的保护?

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

-fno-stack-protector

-fno-stack-check

-fno-stack-clash-protection

-fno-stack-limit

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


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

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...