ソースを参照

Ticket 47427 - Overflow in nsslapd-disk-monitoring-threshold

Bug Description:  The threshold setting was being stored as an "int" instead
                  of a PRUint64.  Config setting validation was also incomplete.

Fix Description:  Fix build warning caused by previous commit.

https://fedorahosted.org/389/ticket/47427
Rich Megginson 12 年 前
コミット
5724e02c7f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      ldap/servers/slapd/libglobs.c

+ 1 - 1
ldap/servers/slapd/libglobs.c

@@ -1679,7 +1679,7 @@ config_set_disk_threshold( const char *attrname, char *value, char *errorbuf, in
 
     if ( *endp != '\0' || threshold <= 4096 || errno == ERANGE ) {
         PR_snprintf ( errorbuf, SLAPI_DSE_RETURNTEXT_SIZE,
-            "%s: \"%s\" is invalid, threshold must be greater than 4096 and less then %llu",
+            "%s: \"%s\" is invalid, threshold must be greater than 4096 and less then %lu",
             attrname, value, LONG_MAX );
         retVal = LDAP_OPERATIONS_ERROR;
         return retVal;