]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More static array bounds
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 7 Jan 2019 01:34:42 +0000 (09:34 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 7 Jan 2019 01:34:42 +0000 (09:34 +0800)
src/lib/util/md4.c
src/lib/util/md5.c

index 17bb1c99aec20b8b8421323fb22c838ad234bfbf..493a256c2278978cc4da57c81e1f89b9e452a542 100644 (file)
@@ -18,7 +18,7 @@ RCSID("$Id$")
  * @param[in] in Data to hash.
  * @param[in] inlen Length of the data.
  */
-void fr_md4_calc(uint8_t out[MD4_DIGEST_LENGTH], uint8_t const *in, size_t inlen)
+void fr_md4_calc(uint8_t out[static MD4_DIGEST_LENGTH], uint8_t const *in, size_t inlen)
 {
        FR_MD4_CTX ctx;
 
@@ -177,7 +177,7 @@ void fr_md4_update(FR_MD4_CTX *ctx, uint8_t const *in, size_t inlen)
  * @param[out] out Where to write the MD4 digest. Minimum length of MD4_DIGEST_LENGTH.
  * @param[in,out] ctx to finalise.
  */
-void fr_md4_final(uint8_t out[MD4_DIGEST_LENGTH], FR_MD4_CTX *ctx)
+void fr_md4_final(uint8_t out[static MD4_DIGEST_LENGTH], FR_MD4_CTX *ctx)
 {
        uint32_t count;
        unsigned char *p;
index 3583c1a1e9e48bd2c47346a3e36d8cb112e7b71f..8b50ccc7d7537cb2dba39a439a5fa33d70887a2f 100644 (file)
@@ -135,7 +135,7 @@ void fr_md5_update(FR_MD5_CTX *ctx, uint8_t const *in, size_t inlen)
  * @param[out] out Where to write the MD5 digest. Minimum length of MD5_DIGEST_LENGTH.
  * @param[in,out] ctx to finalise.
  */
-void fr_md5_final(uint8_t out[MD5_DIGEST_LENGTH], FR_MD5_CTX *ctx)
+void fr_md5_final(uint8_t out[static MD5_DIGEST_LENGTH], FR_MD5_CTX *ctx)
 {
        uint8_t count[8];
        size_t padlen;