[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: ber decoding error in slapd (ITS#2365)
Thanks, this is now fixed in CVS HEAD.
-- 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-bugs@OpenLDAP.org
> [mailto:owner-openldap-bugs@OpenLDAP.org]On Behalf Of
> tfpoage@ucdavis.edu
> Sent: Tuesday, March 11, 2003 12:43 PM
> To: openldap-its@OpenLDAP.org
> Subject: ber decoding error in slapd (ITS#2365)
>
>
> Full_Name: Tom Poage
> Version: 2.1.15+
> OS: Solaris 8
> URL:
> Submission from: (NULL) (169.237.154.31)
>
>
> In moving between 2.1.14 (OPENLDAP_ENG_2_1_14) and anything beyond
> (2.1.15 to OPENLDAP_HEAD), loading certain data that
> previously succeeded
> now fails. Data that fail contain an underscore at the beginning of
> the field, e.g., an LDIF containing "title: ______some
> string". Slight
> modification to the first '_' allows the add/modify to succeed
>
> The failures are "decoding error" in servers/slapd/add.c: do_add()
> and "decoding modlist error" in servers/slapd/modify.c: do_modify().
> Both messages appear in response to calling ber_scanf(). Relevant
> differences seem isolated to the recent ber_get_stringbv[rl]() mods.
>
> This causes the client (e.g.., ldapadd, ldapmodify) to hang.
>
> I have not narrowed down exactly what's causing the problem--my
> debugger (gdb) is presently giving me thread tracing problems.
>
> ==================
>
> ber_scanf fmt ({m{W}}) ber:
> ber_dump: buf=0x00ef0f90 ptr=0x00ef108e end=0x00ef10e8 len=90
> 0000: 30 1c 04 05 74 69 74 6c 65 31 13 04 11 5f 5f 5f
> 0...title1...___
> 0010: 5f 5f 41 53 53 49 53 54 41 4e 54 20 49 49 30 1a
> __ASSISTANT II0.
> 0020: 04 0e 75 63 64 50 65 72 73 6f 6e 4e 65 74 49 44
> ..ucdPersonNetID
> 0030: 31 08 04 06 35 36 34 36 37 36 30 1e 04 04 6d 61
> 1...5646760...ma
> 0040: 69 6c 31 16 04 14 78 78 78 78 78 78 78 78 40 75
> il1...xxxxxxxx@u
> 0050: 63 64 61 76 69 73 2e 65 64 75
> cdavis.edu
> do_add: decoding error
> send_ldap_disconnect 2:decoding error
> send_ldap_response: msgid=0 tag=120 err=2
> ber_flush: 52 bytes to sd 9
> 0000: 30 32 02 01 00 78 2d 0a 01 02 04 00 04 0e 64 65
> 02...x-.......de
> 0010: 63 6f 64 69 6e 67 20 65 72 72 6f 72 8a 16 31 2e
> coding error..1.
> 0020: 33 2e 36 2e 31 2e 34 2e 31 2e 31 34 36 36 2e 32
> 3.6.1.4.1.1466.2
> 0030: 30 30 33 36
> 0036
>