[comp.unix.questions] Stack Direction War Stories

chris@mimsy.UUCP (Chris Torek) (12/22/87)

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