Wednesday, July 2, 2014

[389-commits] ldap/servers

ldap/servers/slapd/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6e175e3308f04de528254871f6b554fe992dd3df
Author: Noriko Hosoi <nhosoi@redhat.com>
Date: Wed Jul 2 10:47:38 2014 -0700

Ticket #47835 - Coverity: 12687..12692

Description: arg_max has to be always set. But introduced by
commit 0a546bcb3d4625d6db1dcbb342922b4ddb3bee37

Description: To solve "Passing string argv[0] of unknown size to
slapi_ch_strdup, which expects a string of a particular size", get
ARG_MAX and pass it to slapi_ch_strndup.

diff --git a/ldap/servers/slapd/main.c b/ldap/servers/slapd/main.c
index 1726e67..6e806d4 100644
--- a/ldap/servers/slapd/main.c
+++ b/ldap/servers/slapd/main.c
@@ -723,8 +723,8 @@ main( int argc, char **argv)

No comments:

Post a Comment