prims.cc
Torsten Rüger
torsten.rueger@firsthop.com
Thu Oct 18 03:08:00 GMT 2001
Moi,
I just got a core dump from the following function. a was NULL.
I inserted the one line which I think should be there anyway.
Why a was null is a different question. It was during class
initialization (full stack appended)
Cheers
Torsten
/libjava/prims.cc look for #######
jboolean
_Jv_equalUtf8Consts (Utf8Const* a, Utf8Const *b)
{
int len;
_Jv_ushort *aptr, *bptr;
if (a == b)
return true;
//######### inserted ##########
if( a==NULL || b==NULL) return false;
// ######## end ##########
if (a->hash != b->hash)
return false;
len = a->length;
if (b->length != len)
return false;
aptr = (_Jv_ushort *)a->data;
bptr = (_Jv_ushort *)b->data;
len = (len + 1) >> 1;
while (--len >= 0)
if (*aptr++ != *bptr++)
return false;
return true;
}
More information about the Java
mailing list