[Date Prev][Date Next] [Chronological] [Thread] [Top]

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?

p.

> Full_Name: Hallvard B Furuseth
> Version: HEAD
> OS: Solaris
> URL:
> Submission from: (NULL) (129.240.186.42)
> 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 )'.
>
>
>


-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497