Some precisions to make myself more clear...

-fstack-protector

Emit extra code to check for buffer overflows, such as stack smashing
attacks.  This is done by adding a guard variable to functions with
vulnerable objects.  This includes functions that call alloca,
and functions with buffers larger than 8 bytes.  The guards are
initialized when a function is entered and then checked when the
function exits.  If a guard check fails, an error message is printed
and the program exits.  On Ubuntu the default is -fstack-protector,
to turn it off use -fno-stack-protector.

The last sentence might be replaced by:

On Debian the default is -fnostack-protector, to turn it on use
-fstack-protector which is the default on Ubuntu.

Cheers,
-- 
 .''`.   Aurélien GÉRÔME
: :'  :
`. `'`   Free Software Developer
  `-     Unix Sys & Net Admin

Attachment: signature.asc
Description: Digital signature

Reply via email to