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

Bad matching with wide-byte characters (ITS#1771)

Full_Name: Hirofumi Momose
Version: 2.0.23
OS: Solaris 2.6
Submission from: (NULL) (


I found a problem of search operation with 2-byte characters.

a) The directory has following entry.

 dn: cn=hoashi,o=foo.com
 cn: hoashi
 sn:: 44G744GC44GX
 objectClass: top
 objectClass: person

b) Search by ldap client with filter byte sequence of
 which describe "sn=WIDE_BYTE_CHARACTERS*".
 Above sn does not match of entry.

c) Server respond the entry matched.

 I found the problem caused by strncasecmp() in
 caseIgnoreSubstringsFilter(). 8-bit width data flows into
 strncasecmp() of this place. This result generates a problem.

Best regards.