From: Howard Chu Date: Mon, 26 Nov 2012 03:31:14 +0000 (-0800) Subject: ITS#7449 fix signedness for index_substr_any_* X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fc0563ce53fab2c03803dae45b3b69ed890a083c;p=openldap ITS#7449 fix signedness for index_substr_any_* Of course, no one would ever have any legitimate reason to set these items to anywhere near such extreme values in the first place. --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 9ea014b935..17cae260c8 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -401,13 +401,13 @@ static ConfigTable config_back_cf_table[] = { { "index_substr_if_maxlen", "max", 2, 2, 0, ARG_UINT|ARG_NONZERO|ARG_MAGIC|CFG_SSTR_IF_MAX, &config_generic, "( OLcfgGlAt:21 NAME 'olcIndexSubstrIfMaxLen' " "SYNTAX OMsInteger SINGLE-VALUE )", NULL, NULL }, - { "index_substr_any_len", "len", 2, 2, 0, ARG_INT|ARG_NONZERO, + { "index_substr_any_len", "len", 2, 2, 0, ARG_UINT|ARG_NONZERO, &index_substr_any_len, "( OLcfgGlAt:22 NAME 'olcIndexSubstrAnyLen' " "SYNTAX OMsInteger SINGLE-VALUE )", NULL, NULL }, - { "index_substr_any_step", "step", 2, 2, 0, ARG_INT|ARG_NONZERO, + { "index_substr_any_step", "step", 2, 2, 0, ARG_UINT|ARG_NONZERO, &index_substr_any_step, "( OLcfgGlAt:23 NAME 'olcIndexSubstrAnyStep' " "SYNTAX OMsInteger SINGLE-VALUE )", NULL, NULL }, - { "index_intlen", "len", 2, 2, 0, ARG_INT|ARG_MAGIC|CFG_IX_INTLEN, + { "index_intlen", "len", 2, 2, 0, ARG_UINT|ARG_MAGIC|CFG_IX_INTLEN, &config_generic, "( OLcfgGlAt:84 NAME 'olcIndexIntLen' " "SYNTAX OMsInteger SINGLE-VALUE )", NULL, NULL }, { "lastmod", "on|off", 2, 2, 0, ARG_DB|ARG_ON_OFF|ARG_MAGIC|CFG_LASTMOD,