Fix ULong config boundary checking (#752)
I noticed in #738 that we don't properly check ULong config boundaries and made the change there. I'm pulling out that particular commit into this PR since we don't know if we want to merge the configurable cluster blacklist TTL yet. --------- Signed-off-by: Brennan Cathcart <brennancathcart@gmail.com> Signed-off-by: Madelyn Olson <madelyneolson@gmail.com> Co-authored-by: Madelyn Olson <madelyneolson@gmail.com>
This commit is contained in:
parent
b99c7237f4
commit
6a5a11f21c
@ -2054,6 +2054,7 @@ static void numericConfigInit(standardConfig *config) {
|
||||
|
||||
static int numericBoundaryCheck(standardConfig *config, long long ll, const char **err) {
|
||||
if (config->data.numeric.numeric_type == NUMERIC_TYPE_ULONG_LONG ||
|
||||
config->data.numeric.numeric_type == NUMERIC_TYPE_ULONG ||
|
||||
config->data.numeric.numeric_type == NUMERIC_TYPE_UINT ||
|
||||
config->data.numeric.numeric_type == NUMERIC_TYPE_SIZE_T) {
|
||||
/* Boundary check for unsigned types */
|
||||
|
Loading…
Reference in New Issue
Block a user