]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix argument with mismatched bound in isc_iterated_hash()
authorMichal Nowak <mnowak@isc.org>
Mon, 17 May 2021 12:14:20 +0000 (14:14 +0200)
committerMichal Nowak <mnowak@isc.org>
Thu, 20 May 2021 11:35:08 +0000 (13:35 +0200)
commit57a3ae9d97fbcb5cdc0088fd04de3bb813c50444
treeb6c9e571089ebba6f5ce06cbc4e469c3f1f86f2f
parented85a2f866fb28c3eca493eae557ee4c826edb56
Fix argument with mismatched bound in isc_iterated_hash()

GCC 11 produced the following warning:

    iterated_hash.c:21:33: warning: argument 1 of type ‘unsigned char[20]’ with mismatched bound [-Warray-parameter=]
       21 | isc_iterated_hash(unsigned char out[ISC_SHA1_DIGESTLENGTH],
          |                   ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from iterated_hash.c:18:
    ./include/isc/iterated_hash.h:33:37: note: previously declared as ‘unsigned char[155]’
       33 | int isc_iterated_hash(unsigned char out[NSEC3_MAX_HASH_LENGTH],
          |                       ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
lib/isc/iterated_hash.c