mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-11 19:49:32 +00:00
14 lines
248 B
C
14 lines
248 B
C
|
#include <signal.h>
|
||
|
#include <string.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
void
|
||
|
__attribute__((__noreturn__))
|
||
|
__chk_fail(void)
|
||
|
{
|
||
|
char msg[] = "*** buffer overflow detected ***: terminated\n";
|
||
|
write (2, msg, strlen (msg));
|
||
|
raise (SIGABRT);
|
||
|
_exit (127);
|
||
|
}
|