Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!WATMATH.WATERLOO.EDU!gamiddleton From: gamiddleton@WATMATH.WATERLOO.EDU (Guy Middleton) Newsgroups: comp.soft-sys.andrew Subject: bug in overhead/class/machdep/dec_mips/doload.c Message-ID: <9005291623.AA13888@maytag.waterloo.edu> Date: 29 May 90 16:23:51 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 25 Running off the end of an array; was causing core dumps on my MIPS machine. *** /tmp/,RCSt1017745 Tue May 29 12:19:16 1990 --- doload.c Mon May 28 20:31:41 1990 *************** *** 119,127 **** struct doload_section_description *thisDesc; safe_read(e, (char *)tempSection, (long)sizeof(*tempSection)); ! for (thisDesc = sectionDescs; thisDesc < sectionDescs + ! sizeof(sectionDescs) && strcmp(tempSection->s_name, ! thisDesc->name) != 0; thisDesc++) ; if (thisDesc < sectionDescs + --- 119,127 ---- struct doload_section_description *thisDesc; safe_read(e, (char *)tempSection, (long)sizeof(*tempSection)); ! for (thisDesc = sectionDescs; ! thisDesc < sectionDescs + sizeof(sectionDescs)/sizeof(*thisDesc) ! && strcmp(tempSection->s_name, thisDesc->name) != 0; thisDesc++) ; if (thisDesc < sectionDescs +