[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#7764) RFE: library lber method which returns the ber size even if the ber is overflown
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#7764) RFE: library lber method which returns the ber size even if the ber is overflown
- From: hyc@symas.com
- Date: Sun, 15 Dec 2013 11:58:14 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
nhosoi@gmail.com wrote:
> Full_Name: Noriko Hosoi
> Version: 2.4.35-4
> OS: Fedora 18
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (209.132.181.86)
>
>
> We use the OpenLdap library in our software. LDAP clients could send too large
> ber and cause LBER_OVERFLOW (or LBER_DEFAULT) to the lber APIs. We'd like to
> learn how large the ber size we should prepare from the error. When we look
> into the BerElement ber using gdb, ber->ber_len stores the value. But the value
> is not returned to the caller when the API fails, e.g., by the overflow. Could
> it be possible to have a way to retrieve the ber size under any condition?
That doesn't sound like OpenLDAP, we have no LBER_OVERFLOW error code. Nor do
we have any particular size limits on a BerElement, other than fitting into a
long.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/