Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Aug 2001 10:34:24 -0700
From:      Mark Peek <mark@whistle.com>
To:        <FreeBSD-hackers@FreeBSD.ORG>
Subject:   Re: TCSH bug...
Message-ID:  <p0510030db7b1861e1470@[207.76.207.129]>
In-Reply-To: <00e101c12fe5$a95bda70$28d90c42@eservoffice.com>
References:   <3B8AC157.5000203@yahoo.com><020701c12f43$8e0e2310$28d90c42@eservoffice.co m><3B8AC8DB.5090603@yahoo.com><004801c12f49$66cccb20$28d90c42@eservoffice. com><20010827201407.A32152@virtual-voodoo.com><3B8B05AF.9070004@yahoo.com> <20010827200243.A8113@dragon.nuxi.com><20010828092016.B21396@virtual-voodo o.com> <15243.50114.846473.519938@grasshopper.cs.duke.edu> <00e101c12fe5$a95bda70$28d90c42@eservoffice.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 12:19 PM -0500 8/28/01, Steven Ames wrote:
>I will submit a problem report to Christos but I want to make sure
>that I can explain exactly what is happening and why...

Memory is getting freed out from under a pointer to that memory. I just
submitted this patch to the tcsh mailing list and hopefully Christos or
someone else can validate that it is the correct patch to make.

Mark

Index: tc.func.c
===================================================================
RCS file: /cvs/freebsd/src/contrib/tcsh/tc.func.c,v
retrieving revision 1.1.1.2.2.2
diff -u -r1.1.1.2.2.2 tc.func.c
--- tc.func.c	2001/03/05 05:50:09	1.1.1.2.2.2
+++ tc.func.c	2001/08/28 17:20:59
@@ -1259,6 +1259,7 @@
 			    del = tmp;
 			    xfree((ptr_t) del);
 			}
+			we = tmp;
 		    }
 		}
 	    }


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0510030db7b1861e1470>