source:
trunk/libs/newlib/src/newlib/libc/ssp/chk_fail.c
@
577
Last change on this file since 577 was 444, checked in by , 6 years ago | |
---|---|
File size: 248 bytes |
Line | |
---|---|
1 | #include <signal.h> |
2 | #include <string.h> |
3 | #include <unistd.h> |
4 | |
5 | void |
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.