Status of stack-protector

Hello,

While I was playing with stack protector option, I found a problem.

In my test program (x86_64), the call to stack_chk_fail is generated after the ‘ret’ instruction and so is never reached (I’m not an x86 assembly expert, so correct me if I’m wrong on this point)

My bad. I just read a little more how the stack guard works, and saw that the position of the call is good.
My problem is elsewhere as the behavior is not the same with GCC and clang. I will dig a little deeper to see what the difference is.

OK, so it works but only if I reduce the stack buffer size a little more. Sorry for the noise.