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

RE: Is bv_val \0-terminated in slapd?



Should be. The only place that uses a non-terminated berval is in the ACI
parser.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-devel@OpenLDAP.org
> [mailto:owner-openldap-devel@OpenLDAP.org]On Behalf Of Hallvard B
> Furuseth
> Sent: Tuesday, March 19, 2002 1:35 AM
> To: openldap-devel@OpenLDAP.org
> Subject: Is bv_val \0-terminated in slapd?
>
>
> Is struct berval->bv_val always \0-terminated for attribute values
> in slapd?  I.e. can I use strcmp() instead of strncmp() in routines
> like slapd/schema_init.c:caseExactMatch()?
>
> --
> Hallvard