--- glibc-2.3.2-propolice-guard-functions.patch 2003-11-08 08:38:35.000000000 -0500 +++ glibc-2.3.2-propolice-guard-functions.patch 2003-11-08 14:36:32.000000000 -0500 @@ -76,8 +76,8 @@ + extern char * __progname; +#endif + const char message[] = ": stack smashing attack in function "; -+ int bufsz = 512, len; -+ char buf[bufsz]; ++ int bufsz = 512, len = 3; ++ char buf[bufsz] = "<2>"; +#if defined(HAVE_SYSLOG) + int LogFile; + struct sockaddr_un SyslogAddr; /* AF_UNIX address of local logger */ @@ -91,7 +91,7 @@ + } +#endif + -+ strcpy(buf, "<2>"); len=3; /* send LOG_CRIT */ ++ /* send LOG_CRIT */ +#if defined (__GNU_LIBRARY__) + strncat(buf, __progname, bufsz-len-1); len = strlen(buf); +#endif @@ -115,15 +115,15 @@ +#endif + +#ifdef _POSIX_SOURCE -+ { /* Make sure the default handler is associated with SIGABRT */ ++ { /* Make sure the default handler is associated with SIGKILL and not SIGABRT */ + struct sigaction sa; + + memset(&sa, 0, sizeof(struct sigaction)); + sigfillset(&sa.sa_mask); /* Block all signals */ + sa.sa_flags = 0; + sa.sa_handler = SIG_DFL; -+ sigaction(SIGABRT, &sa, NULL); -+ (void)kill(getpid(), SIGABRT); ++ sigaction(SIGKILL, &sa, NULL); ++ (void)kill(getpid(), SIGKILL); + } +#endif + _exit(127);