Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / ssp / chk_fail.c
blobb1f8e42a693accf158d584d2fb058a59a4cf6999
1 #include <signal.h>
2 #include <string.h>
3 #include <unistd.h>
5 void
6 __attribute__((__noreturn__))
7 __chk_fail(void)
9 char msg[] = "*** buffer overflow detected ***: terminated\n";
10 write (2, msg, strlen (msg));
11 raise (SIGABRT);
12 _exit (127);