Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Oct 1998 01:43:25 -0500
From:      Zach Heilig <zach@gaffaneys.com>
To:        Studded <Studded@gorean.org>, Mike Smith <mike@smith.net.au>
Cc:        Archie Cobbs <archie@whistle.com>, FreeBSD-Hackers@FreeBSD.ORG
Subject:   Re: mail in free(): warning: junk pointer, too high to make sense.
Message-ID:  <19981010014325.B12383@znh.org>
In-Reply-To: <361D6C89.F76B1755@gorean.org>; from Studded on Thu, Oct 08, 1998 at 06:53:13PM -0700
References:  <199810090046.RAA01827@dingo.cdrom.com> <361D6C89.F76B1755@gorean.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.

-- 
Zach Heilig <zach@gaffaneys.com>
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



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