Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!cmcl2!beta!hc!ames!lll-tis!mordor!jdb From: jdb@mordor.s1.gov (John Bruner) Newsgroups: comp.sys.mac Subject: bug fix for UW server: server/uw_ipc.c Message-ID: <15120@mordor.s1.gov> Date: Fri, 17-Jul-87 18:02:11 EDT Article-I.D.: mordor.15120 Posted: Fri Jul 17 18:02:11 1987 Date-Received: Sat, 18-Jul-87 17:06:42 EDT Organization: S-1 Project, LLNL Lines: 27 The UW server does not allocate enough memory for the "UW_INET" environment string. This bug causes the following byte to be set to '\0' (zero), which could interfere with data private to malloc(). *** uw_ipc.c.old Fri Jul 17 14:53:22 1987 --- uw_ipc.c Mon Jul 13 17:44:12 1987 *************** *** 267,273 **** (void)close(sd); return; } ! if ((cp = malloc(sizeof INET_ENV + 8 + 1 + 5)) == NULL) { /* no memory, give up */ (void)close(sd); return; --- 267,273 ---- (void)close(sd); return; } ! if ((cp = malloc(sizeof INET_ENV + 1 + 8 + 1 + 5)) == NULL) { /* no memory, give up */ (void)close(sd); return; -- John Bruner (S-1 Project, Lawrence Livermore National Laboratory) jdb@mordor.s1.gov ...!seismo!mordor!jdb (415) 423-4848