File:  [DVB] / dietlibc / lib / stack_smash_handler2.c
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 4 05:35:14 2006 UTC (18 years, 2 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
  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);
}

LinuxTV legacy CVS <linuxtv.org/cvs>