[Date Prev][Date Next]
(ITS#5109) ldap_int_global_options not initialized
Full_Name: Damien Doiselet
OS: Debian 4 (kernel 18.104.22.168)
Submission from: (NULL) (22.214.171.124)
I'm developing an application which use openldap.
I load the library at the runtime with function GetProcAddress
My application work correctly except on one PC. This PC is a Debian 4.0 with a
kernel 126.96.36.199. Ldap library is a 2.3.30.
The library crash, and so my code too in ldap_initialize() (first call of a ldap
#0 0xb7eab3a3 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1 0xb3a2d1f9 in ber_strdup_x (s=0x6a626f28 <Address 0x6a626f28 out of bounds>,
ctx=0x0) at memory.c:640
#2 0xaddcbdf6 in ldap_charray_dup () from /usr/lib/libldap-2.3.so.0
#3 0xaddc2773 in ldap_url_dup () from /usr/lib/libldap-2.3.so.0
#4 0xaddc2802 in ldap_url_duplist () from /usr/lib/libldap-2.3.so.0
#5 0xaddab4dc in ldap_create () from /usr/lib/libldap-2.3.so.0
#6 0xaddab7d1 in ldap_initialize () from /usr/lib/libldap-2.3.so.0
While I was debugging, ldap_int_global_options was not initialized.
Nevertheless, with -lldap compilation with gcc, there is no problem.