projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d108082
)
Fix cast.
author
Pauli
<pauli@openssl.org>
Thu, 2 Mar 2023 23:14:39 +0000
(10:14 +1100)
committer
Pauli
<pauli@openssl.org>
Sun, 5 Mar 2023 21:19:13 +0000
(08:19 +1100)
Fixes #20424
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20425)
crypto/evp/digest.c
patch
|
blob
|
history
diff --git
a/crypto/evp/digest.c
b/crypto/evp/digest.c
index f6819a321bea814913fd6abfba92e46546324afd..6ce80a1b031b9363439b80238ed1eb28f89f36b6 100644
(file)
--- a/
crypto/evp/digest.c
+++ b/
crypto/evp/digest.c
@@
-457,7
+457,7
@@
int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *isize)
if (isize != NULL) {
if (size <= UINT_MAX) {
- *isize = (int)size;
+ *isize = (
unsigned
int)size;
} else {
ERR_raise(ERR_LIB_EVP, EVP_R_FINAL_ERROR);
ret = 0;