mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Declare enough buffer space for out-of-range URL port numbers
This commit is contained in:
parent
13491b3905
commit
e4ffd33f1a
@ -582,7 +582,7 @@ desc2str_len( LDAPURLDesc *u )
|
||||
len += sep;
|
||||
|
||||
if ( u->lud_port ) {
|
||||
char buf[ STRLENOF(":65535") + 1 ];
|
||||
char buf[LDAP_PVT_INTTYPE_CHARS(int) + 1];
|
||||
|
||||
len += snprintf( buf, sizeof( buf ), ":%d", u->lud_port );
|
||||
if ( u->lud_host && u->lud_host[0] ) {
|
||||
|
Loading…
Reference in New Issue
Block a user