diff options
Diffstat (limited to 'crypto/evp/digest.c')
-rw-r--r-- | crypto/evp/digest.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c index feab0831be..0abd3ce48d 100644 --- a/crypto/evp/digest.c +++ b/crypto/evp/digest.c @@ -280,6 +280,7 @@ int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *size) return FIPS_digestfinal(ctx, md, size); #else int ret; + OPENSSL_assert(ctx->digest->md_size <= EVP_MAX_MD_SIZE); ret=ctx->digest->final(ctx,md); if (size != NULL) |