Re: get "stack smasshing" for code that uses pointers passed as references.

2010-08-23 Thread Florian Weimer
* Wendell Nichols: > I have some code that passes pointers like: > > int foo( int a,char *& word){ > ... > } > > If that function modifies the actual pointer word (indexes it for > instance) I will get a stack smashing error at runtime. The code runs > perfectly if I set -fno-stack-protector. > >

get "stack smasshing" for code that uses pointers passed as references.

2010-08-23 Thread Wendell Nichols
I have some code that passes pointers like: int foo( int a,char *& word){ ... } If that function modifies the actual pointer word (indexes it for instance) I will get a stack smashing error at runtime. The code runs perfectly if I set -fno-stack-protector. Is this feature intended to work p