source: trunk/libs/newlib/src/newlib/libc/ssp/chk_fail.c @ 577

Last change on this file since 577 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 248 bytes
Line 
1#include <signal.h>
2#include <string.h>
3#include <unistd.h>
4
5void
6__attribute__((__noreturn__))
7__chk_fail(void)
8{
9  char msg[] = "*** buffer overflow detected ***: terminated\n";
10  write (2, msg, strlen (msg));
11  raise (SIGABRT);
12  _exit (127);
13}
Note: See TracBrowser for help on using the repository browser.