Re: Re: understanding buffer overflows

View: New views
3 Messages — Rating Filter:   Alert me  

Re: Re: understanding buffer overflows

by erk_3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I had the same problem, there are a few switches you have to use if compiling with a recent version of gcc.  I cant remember the other one (i'll go look now) but try compiling with this flag.

-fno-stack-protector

Re: Re: understanding buffer overflows

by Kristian Erik Hermansen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 14 Dec 2007 21:39:30 -0000,  <erk_3@...> wrote:
> I had the same problem, there are a few switches you have to use if compiling with a recent version of gcc.  I cant remember the other one (i'll go look now) but try compiling with this flag.
>
>
> -fno-stack-protector

Also this flag...
-fno-stack-protector-all
--
Kristian Erik Hermansen
"I have no special talent. I am only passionately curious."

Re: understanding buffer overflows

by Valdis.Kletnieks :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 14 Dec 2007 21:39:30 GMT, erk_3@... said:
> I had the same problem, there are a few switches you have to use if compiling
> with a recent version of gcc.
>
> -fno-stack-protector

fortify-source is likely the other thing you want to look into:

http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html


attachment0 (234 bytes) Download Attachment