projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de61c03
)
Remove OPENSSL_assert() from crypto/hmac
author
Matt Caswell
<matt@openssl.org>
Wed, 21 Jun 2017 14:55:20 +0000
(15:55 +0100)
committer
Matt Caswell
<matt@openssl.org>
Mon, 21 Aug 2017 07:44:44 +0000
(08:44 +0100)
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3740)
crypto/hmac/hmac.c
patch
|
blob
|
history
diff --git
a/crypto/hmac/hmac.c
b/crypto/hmac/hmac.c
index 3952dd50ade738b4f4a022a6fdb48289eade59bc..156725ea4cf3c463787ee4edf176dfd1a08af43f 100644
(file)
--- a/
crypto/hmac/hmac.c
+++ b/
crypto/hmac/hmac.c
@@
-37,7
+37,8
@@
int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
if (key != NULL) {
reset = 1;
j = EVP_MD_block_size(md);
- OPENSSL_assert(j <= (int)sizeof(ctx->key));
+ if (!ossl_assert(j <= (int)sizeof(ctx->key)))
+ goto err;
if (j < len) {
if (!EVP_DigestInit_ex(ctx->md_ctx, md, impl))
goto err;