]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
increase bounds
authorAlan T. DeKok <aland@freeradius.org>
Tue, 19 Apr 2022 18:07:59 +0000 (14:07 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 20 Apr 2022 13:18:30 +0000 (09:18 -0400)
src/protocols/radius/decode.c

index d995cd53b8ff5553d84c9d1bd8378a4764c35ab1..62bf99aa938944527bef51da4649b697f8881800 100644 (file)
@@ -1805,7 +1805,7 @@ ssize_t fr_radius_decode_pair_value(TALLOC_CTX *ctx, fr_pair_list_t *out,
  *     check on a buffer, that's less work than a series of if / then
  *     / else conditions.
  */
-static const bool special[UINT8_MAX] = {
+static const bool special[UINT8_MAX + 1] = {
        [FR_NAS_FILTER_RULE]    = true,         /* magic rules */
        [FR_DIGEST_ATTRIBUTES]  = true,         /* magic rules */