[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
no enough space in hostlist buffer (libraries/libldap/dnssrv.c) (ITS#1936)
Full_Name: Ralf Haferkamp
Version: 2.0.X
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (213.95.15.201)
Function: ldap_domain2hostlist line 266ff:
buflen = strlen(host) + sizeof(":65355");
hostlist = (char *) LDAP_REALLOC(hostlist, cur + buflen);
if (hostlist == NULL) {
rc = LDAP_NO_MEMORY;
goto out;
}
if (cur > 0) {
/* not first time around */
hostlist[cur++] = ' ';
There might not be enough space in hostlist for the ' '
}
cur += sprintf(&hostlist[cur], "%s:%hd", host, port);
This issue however seems to be fixed in HEAD. Will it be backported to
OPENLDAP_REL_ENG_2 ?