Subject: Re: CVS commit: src/sys/ufs/lfs
To: Tyler Retzlaff <rtr@omicron-persei-8.net>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: source-changes
Date: 03/19/2006 13:37:11
On Sun, Mar 19, 2006 at 11:30:53PM +1100, Tyler Retzlaff wrote:
> YAMAMOTO Takashi wrote:
>
> >what i don't understand here is, why you think NULL initialization is
> >better wrt future bugs.
> >
> >
> Would a dereference of the NULL ptr not cause immediate failure? As
> opposed to dereference of garbage ptr which may or may not fail
> immediately? and in such a case potentially corrupt some other (possibly
> unrelated) memory which would lead to a fault/crash later that were
> harder to trace back to the original bad dereference?
Yes, it will.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--