jdb@mordor.s1.gov (John Bruner) (07/18/87)
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