]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CID 1409860: Can’t use bounds checks on 64 bit integers
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 26 May 2017 01:21:17 +0000 (21:21 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 26 May 2017 01:21:17 +0000 (21:21 -0400)
src/lib/util/value.c

index 8461209f1f8df07cc4c2a3a8ef095cc82b2a38ba..71fa714ce0433c4264e2154fedbbcc4da4231bfc 100644 (file)
@@ -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;