Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!mmdf From: sanj!SACMGR!HENRYM@udel.edu Newsgroups: comp.os.minix Subject: Re: ST 1.5.0 strlen bug Message-ID: <12043@nigel.udel.EDU> Date: 24 Feb 90 04:09:49 GMT Sender: mmdf@udel.EDU Lines: 28 >As I understand this is not a strlen bug, but a bug of the program. >You cannot test in every lib function for valid parameters, it's the >writer of the program who must garantee this. Testing a parameter for validity inside a library routine makes a lot more sense than checking the parameters before every call. The overhead of checking the parameter in the library routine is very small, as opposed to the overhead in memory usage to checking each parameter before calling a library routine. -HWM ---------- Henry W. Miller Assistant Systems Manager, Mid Pacific Region U.S. Bureau of Reclamation 2800 Cottage Way MP1100 Sacramento, CA 95825 (916) 978-5108 / FTS 460-5108 Inet: "sanj!sacwms!henrym@caldwr.water.ca.gov" (Vaxcluster) "sanj!sacusr!henrym@caldwr.water.ca.gov" "sanj!sacmgr!henrym@caldwr.water.ca.gov" BITNET: "hmiller@scu" !Warning: This is NOT the same machine as the above cluster. UUCP: "...caldwr!sanj!henrym" "Bad guys abuse public land, good guys save it."