On Mon, Mar 11, 2002 at 03:24:56PM -0500, 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've run into this several times, but I thought Dan mentioned once
that the problem was really that string registers should never be
NULL. Which sounds good to me, since it speeds up and simplifies
various things, for example the JIT. On the other hand, it would still
make sense to check in the string functions, since there will be many
ways to end up there.

I might just be making stuff up, too.

Reply via email to