repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git]
/
newlib
/
libc
/
ssp
/
chk_fail.c
blob
b1f8e42a693accf158d584d2fb058a59a4cf6999
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
}