The Shoes of the Fisherman's Wife Are Some Jive-Ass Slippers

tpot (at) frungy . org

rss

2006
Months
Oct

Wed, 25 Oct 2006

Tridge on NULL pointer checks

From the samba-technical mailing list:

From:		tridge@samba.org
To:		samba-technical@samba.org
Subject:	Re: Coverity errors in libndr/
Date:		Wed, 25 Oct 2006 12:35:56 +1000

Luke,

 > Or put some assertion checks in?

time for my bi-yearly rant about assertions on NULL dereference :)

Unix and unix-like systems provide a highly efficient, zero code
assertion system. It interfaces to debuggers, it correctly propogates
to parent processes and it is even implemented in hardware on nearly
every system in existance. 

It's called the segmentation fault. It's wonderful. Use it :-)

Cheers, Tridge
posted at: 16:01 | path: /software | permanent link to this entry