From: Alvin Starr <alvin@iplink.net>
To: axp-list@redhat.com
Subject: Re: Calloc bug(not).
Date: Mon, 08 Jul 2002 21:27:00 -0400 [thread overview]
Message-ID: <3D2A3BE4.6090907@iplink.net> (raw)
In-Reply-To: 3D29FED5.9E1E8CB9@voicenet.com
Uncle George wrote:
> Maybe "Electricfence" is for you. It will crash your pgm if you try to
> write out of the 'malloc`d' area ( as the boundary is write protected
> from trespass.) Its not always convenient, as each little malloced area
> eats up (at least a ) shared memory segment
>
> alvin wrote:
>
>>Is there any "sloppy" malloc out there that will leave room at the end
>>of a block for those who have the +/-1 problem with programming loops?
>>
I tracked down the bug in netsaint to a silly bug(malloc'ing char sized
itmes in stead of pointer sized items).
dmalloc did catch the bug when all the checking was turned on. dmalloc
did however let the bug go past when there was no debugging turned on. I
will find out tonight if this fixes the problem I am seeing with
Arkeia(this is the bakup client I am using and it worked with RH6.2 but
not RH7.x). I think dmalloc will fit my requirement as a sloppy malloc
when the debug tests are turned off.
--
Alvin Starr || voice: (416)585-9971
Interlink Connectivity || fax: (416)585-9974
alvin@iplink.net ||
prev parent reply other threads:[~2002-07-09 1:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-08 16:12 Calloc bug alvin
2002-07-08 16:31 ` Falk Hueffner
2002-07-08 20:04 ` alvin
2002-07-08 20:41 ` alvin
2002-07-08 21:06 ` Uncle George
2002-07-09 1:27 ` Alvin Starr [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox