From 32fac041b24b56cec44ce6ea2064439dec23506b Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 6 Feb 2004 23:42:36 +0000 Subject: [PATCH] (RESOLVE_IPADDRESS): gethostbyaddr() uses a lot of stack space on some versions of GNU libc, which can lead to nasty heap smashes (observed with 2.2.93). Don't define RESOLVE_IPADDRESS for now, until we readjust thread stack sizes. --- include/misc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/misc.h b/include/misc.h index 45885625..11d34eb8 100644 --- a/include/misc.h +++ b/include/misc.h @@ -76,7 +76,12 @@ struct mob_acc_globals { }; #define ANNO_KEEP_DAYS 7 /* Keep announcements around for this many days */ +/* This uses a lot of thread stack with some versions of GNU libc, + which can lead to nasty heap smashes (observed with 2.2.93). + Disabled for now, until we readjust thread stack sizes. */ +#if 0 #define RESOLVE_IPADDRESS /* resolve ip addresses into hostnames */ +#endif typedef u_char natid; /* also change NSC_NATID in nsc.h */