From owner-freebsd-hackers Tue Feb 6 03:22:30 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA16399 for hackers-outgoing; Tue, 6 Feb 1996 03:22:30 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id DAA16394 for ; Tue, 6 Feb 1996 03:22:27 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id VAA02850; Tue, 6 Feb 1996 21:46:43 +1030 From: Michael Smith Message-Id: <199602061116.VAA02850@genesis.atrad.adelaide.edu.au> Subject: Re: does phkmalloc check bounds? To: kuku@gilberto.physik.rwth-aachen.de (Christoph P. Kukulies) Date: Tue, 6 Feb 1996 21:46:43 +1030 (CST) Cc: freebsd-hackers@freefall.freebsd.org In-Reply-To: <199602060943.KAA17404@gilberto.physik.rwth-aachen.de> from "Christoph P. Kukulies" at Feb 6, 96 10:43:08 am MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG Precedence: bulk Christoph P. Kukulies stands accused of saying: > > Without having looked at phkmalloc - where is it hidden in the > source tree BTW - I wonder if it does bounds checking, that is > allocate a bit more on every malloc, initialize the extra bytes > with a magic pattern and see if it is invalidated next time > an alloc routine is entered. Read the code; it's pretty easy to follow. I've retrofitted it into libc on all our -stable systems here; it's great for catching _stupid_ programming mistakes! > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de Performance be damned, it's saved me more time in bugfixing than any performance gain could; hat off to phk. -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] "wherever you go, there you are" - Buckaroo Banzai [[