From owner-freebsd-hackers Fri Oct 9 23:43:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA25787 for freebsd-hackers-outgoing; Fri, 9 Oct 1998 23:43:59 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from k6n1.znh.org (dialup4.gaffaneys.com [208.155.161.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA25769 for ; Fri, 9 Oct 1998 23:43:43 -0700 (PDT) (envelope-from zach@gaffaneys.com) Received: (from zach@localhost) by k6n1.znh.org (8.9.1/8.9.1) id GAA12745; Sat, 10 Oct 1998 06:43:25 GMT (envelope-from zach) Message-ID: <19981010014325.B12383@znh.org> Date: Sat, 10 Oct 1998 01:43:25 -0500 From: Zach Heilig To: Studded , Mike Smith Cc: Archie Cobbs , FreeBSD-Hackers@FreeBSD.ORG Subject: Re: mail in free(): warning: junk pointer, too high to make sense. References: <199810090046.RAA01827@dingo.cdrom.com> <361D6C89.F76B1755@gorean.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.93.2i In-Reply-To: <361D6C89.F76B1755@gorean.org>; from Studded on Thu, Oct 08, 1998 at 06:53:13PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Oct 08, 1998 at 06:53:13PM -0700, Studded wrote: > The culprit would seem to be one or more of: > char tempMail[24]; > char tempQuit[24]; > char tempEdit[24]; > char tempResid[24]; > char tempMesg[24]; > > from temp.c, however in my testing I couldn't figure out which one. > Also, to make matters more exciting I have TMPDIR set to > /home/my16charusername/.temporary_dir. The TMPDIR variable is referenced > in the same part of the code in temp.c. > > Hoping we're narrowing this down, All of them are the culprit: space used: 37: strlen("/home/my16charusername/.temporary_dir") + 8: strlen("RsXXXXXX") + 1: trailing nul 46 space available: 24 46 characters is far far too big for a 24 character buffer. -- Zach Heilig If it looks like a duck, and quacks like a duck, we have to at least consider the possibility that we have a small aquatic bird of the family Anatidę on our hands (Douglas Adams -- Dirk Gently's Holistic Detective Agency) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message