Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/ufs/lfs
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@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index