[Date Prev][Date Next]
Re: dnMatch/uniqueMemberMatch core dump (ITS#3247)
I hink passing a NULL value to dnMatch is an error (dnMatch should assert
the values are legal, i.e. at least empty). Can you produce a backtrace?
> Full_Name: Hallvard B Furuseth
> Version: HEAD
> OS: Solaris
> Submission from: (NULL) (126.96.36.199)
> Submitted by: hallvard
> test014 dumps core in this log statement in dnMatch():
> LDAP_LOG( CONFIG, ENTRY, "dnMatch: %d\n %s\n %s\n",
> match, value->bv_val, asserted->bv_val );
> because it gets asserted->bv_val == NULL from uniqueMemberMatch().
> I don't know if that's an error in dnMatch or in UniqueMemberMatch:
> There are many other places in dn.c which assume bv_val != NULL.
> If the error is in dn.c, the 'if ( match == 0 )' must also be
> fixed to 'if ( match == 0 && value->bv_len )'.
SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497