Out of range pointers

Doug Gwyn gwyn at smoke.ARPA
Fri Sep 23 03:44:23 AEST 1988


In article <33666 at XAIT.XEROX.COM> g-rh at XAIT.Xerox.COM (Richard Harter) writes:
>one checks the input for validity.  If there is trouble in your routine,
>that's your problem.  But if you don't check your input and it violates
>your interface assumptions anything can happen.

You cannot fix the caller's violation of the interface spec in the called
routine.

It often pays to perform thorough parameter validation while debugging an
application, but you should not rely on such micro-tests for robustness.



More information about the Comp.lang.c mailing list