On Mon, 11 Mar 2002, Simon Glover wrote: > > For more fun in the same vein, try this: > > length S0 > end > > In both cases the problem is that we're not checking the STRING* > pointer passed to the function before we start trying to dereference it. > This seems to be a fairly generic problem in the string functions, > unfortunately - a brief look suggests that string_ord is the only one > doing the right thing.
I seem to remember someone unpatching a couple of if (NULL == string) statements recently. I'll be blunt and say: DON'T DO THAT. Defensive programming is good, segfaulting is bad, remember? Alex Gough