Date: Sat, 10 Oct 1998 02:38:00 -0700 From: Mike Smith <mike@smith.net.au> To: Zach Heilig <zach@gaffaneys.com> Cc: Studded <Studded@gorean.org>, Mike Smith <mike@smith.net.au>, Archie Cobbs <archie@whistle.com>, FreeBSD-Hackers@FreeBSD.ORG Subject: Re: mail in free(): warning: junk pointer, too high to make sense. Message-ID: <199810100938.CAA04559@dingo.cdrom.com> In-Reply-To: Your message of "Sat, 10 Oct 1998 01:43:25 CDT." <19981010014325.B12383@znh.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810100938.CAA04559>