Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Out of range pointers
Message-ID: <1988Sep27.172738.16453@utzoo.uucp>
Organization: U of Toronto Zoology
References: <867@osupyr.mast.ohio-state.edu> <3200@geac.UUCP> <1430@ficc.uu.net> <1988Sep15.145026.20325@ateng.uucp> <16041@ism780c.isc.com <28227@think.UUCP> <8557@smoke.ARPA> <33666@XAIT.XEROX.COM> <8564@smoke.ARPA> <33789@XAIT.XEROX.COM>
Date: Tue, 27 Sep 88 17:27:38 GMT

In article <33789@XAIT.XEROX.COM> g-rh@XAIT.Xerox.COM (Richard Harter) writes:
>... I would say that it pays to perform parameter validation...

True, but in general one must draw the line somewhere.  It's almost always
possible to add just one more check.  There usually has to be some sort of
balance with efficiency.
-- 
NASA is into artificial        |     Henry Spencer at U of Toronto Zoology
stupidity.  - Jerry Pournelle  | uunet!attcan!utzoo!henry henry@zoo.toronto.edu