开发者

Issues with fstack-protector?

开发者 https://www.devze.com 2023-04-12 12:54 出处:网络
I want to detect stack overflow or corruption in my code. Hence, i wrote a small program where stack overflow i开发者_开发技巧s simulated. I compiled it using the command:

I want to detect stack overflow or corruption in my code. Hence, i wrote a small program where stack overflow i开发者_开发技巧s simulated. I compiled it using the command:

gcc overflow.c -g -fstack-protector-all

However, upon executing the binary i got segmentation fault but no other information. Can anybody please help me where did i go wrong?


If ulimit -c is set to a value much bigger than zero, a core dump named core is written; you can see the backtrace via running gdb program core and then typing backtrace at the prompt.

0

精彩评论

暂无评论...
验证码 换一张
取 消