]> git.pond.sub.org Git - empserver/commitdiff
(RESOLVE_IPADDRESS): gethostbyaddr() uses a lot of stack space on some
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 6 Feb 2004 23:42:36 +0000 (23:42 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 6 Feb 2004 23:42:36 +0000 (23:42 +0000)
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

index 45885625ad4ee45c115b39923fea381bb49f39c8..11d34eb862a6bfbed90d3472ac2229a5a8c463d4 100644 (file)
@@ -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 */