Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: basesrc



Klaus Klein <kleink%ira.uka.de@localhost> writes:

> I usually attempt to avoid merely seconding the opinions of others,
> but I think it's necessary to say that I agree with Jaromir and (in
> particular) cgd completely.  In fact, this kind of `silent failure' is
> far more obscure than SIGSEGV.

One thing that I found very handy in bind9 coding is a strict
requirements check on all inputs to functions.  I don't think this
should be the common code path, but if code is linked with -ldebuglibc
or something various assert() calls can be made to verify that
arguments are sane.

This has caught so many bugs long before they were even runnable code
that I have taken to using this method for nearly all code I write
from scratch anymore.

--Michael



Home | Main Index | Thread Index | Old Index