From: Arran Cudbard-Bell Date: Fri, 26 May 2017 01:21:17 +0000 (-0400) Subject: CID 1409860: Can’t use bounds checks on 64 bit integers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a047289442d7e47bec66de533aa3ddb4160f6537;p=thirdparty%2Ffreeradius-server.git CID 1409860: Can’t use bounds checks on 64 bit integers --- diff --git a/src/lib/util/value.c b/src/lib/util/value.c index 8461209f1f8..71fa714ce04 100644 --- a/src/lib/util/value.c +++ b/src/lib/util/value.c @@ -2811,7 +2811,7 @@ static int fr_value_box_integer_str(fr_value_box_t *dst, fr_type_t dst_type, cha break; case FR_TYPE_UINT64: - IN_RANGE_UNSIGNED(UINT64); + /* IN_RANGE_UNSIGNED doesn't work here */ dst->vb_uint64 = (uint64_t)uinteger; break; @@ -2831,7 +2831,7 @@ static int fr_value_box_integer_str(fr_value_box_t *dst, fr_type_t dst_type, cha break; case FR_TYPE_INT64: - IN_RANGE_SIGNED(INT64); + /* IN_RANGE_SIGNED doesn't work here */ dst->vb_int64 = (int64_t)sinteger; break;