From owner-freebsd-hackers Sat Oct 10 02:33:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA13025 for freebsd-hackers-outgoing; Sat, 10 Oct 1998 02:33:33 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (castles154.castles.com [208.214.165.154]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA13019 for ; Sat, 10 Oct 1998 02:33:30 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id CAA04559; Sat, 10 Oct 1998 02:38:01 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810100938.CAA04559@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Zach Heilig cc: Studded , Mike Smith , Archie Cobbs , FreeBSD-Hackers@FreeBSD.ORG Subject: Re: mail in free(): warning: junk pointer, too high to make sense. In-reply-to: Your message of "Sat, 10 Oct 1998 01:43:25 CDT." <19981010014325.B12383@znh.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Sat, 10 Oct 1998 02:38:00 -0700 From: Mike Smith Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id CAA13021 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. I'd have to concur; these should all be MAXPATHLEN. When you try increasing these, you should be able to un-staticise 'msgvec' in lex.c and have it still work like it should. Thanks for tracking these down! -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message