Return to stack_smash_handler2.c CVS log | Up to [DVB] / dietlibc / lib |
update SSP (ProPolice) support (with help from Eduardo Tongson) enabled starting with gcc 4.1
#include <unistd.h> #include <write12.h> void __stack_chk_fail(void); /* earlier versions of ProPolice actually gave the address and function * name as arguments to the handler, so it could print some useful * diagnostics. No more. :-( */ void __stack_chk_fail(void) { __write2("smashed stack detected, program terminated.\n"); _exit(127); }