No, that is not what I'm saying. What I'm saying is that the programmer should not *expect* the subroutine to do his error checking for him. If *everyone* wrote code that way, including the writer of the subroutine, we wouldn't have the problems we have with buffer overflows.
That is the most backward thing I have ever heard. So you are saying all I need to do as a programmer is tell you not to pass a negative number/null pointer/un-initialized value... to my function and I am off the hook. All I can say is that I am glad utdallas doesn't have you teaching programming. The fact that you are unaware what lies inside the black box in no way relieves the responsibility of the designer of the black box to make sure that it behaves predictably under all input cases.
Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer The University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu
_______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.netsys.com/full-disclosure-charter.html