Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!umd5!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: Stack Direction War Stories Message-ID: <9920@mimsy.UUCP> Date: 22 Dec 87 02:31:32 GMT References: <205@ksr.UUCP> <1962@ncr-sd.SanDiego.NCR.COM> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 20 In article <1962@ncr-sd.SanDiego.NCR.COM> greg@ncr-sd.SanDiego.NCR.COM (Greg Noel) writes: >How about vi? ... the routine to free memory attempted to see >if the address of the item to be freed was above or below one of >its parameters and only called free() if the address was lower. This was in csh, not vi. `free' began with free(p) char *p; { if (p > (char *)&p) return; ... The 4.3 csh code is different. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris