Olufowobi Lawal wrote: > Thanks all for answering. > > but Paul you wrote > You should only use recursion where you have total control of the > input, and (by extension) where you can control the depth of > recursion. > > Do you mean it is better not to apply it in user-input dependent functions? > > Lawal. O
I agree. Unfortunately, virtually everything is user-input driven on some level of understanding. "User input -> Data scrubbing for bad input -> Assumed clean input functions" is the typical thought...and it gets a lot of people in trouble, which is why security vulnerabilities start showing up. Never assume input data is clean even after your data scrubber functions have been applied (assume they are faulty somehow). -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
