summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-01-25 15:01:43 +0000
committerMatt Caswell <matt@openssl.org>2017-01-25 15:07:37 +0000
commitb8552dc80a611083754493283e72d51f3015753a (patch)
tree57ee3816acd2d6efe97111b2ea8f68de37757aea /crypto/evp
parent38a041a092fe50c5a9c76ea4f21be89ed086a8de (diff)
Remove assert from is_partially_overlapping()
This function is used to validate application supplied parameters. An assert should be used to check for an error that is internal to OpenSSL. Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2275) (cherry picked from commit b153f0921bea38127de0b9440b0487db3004330d)
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/evp_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/evp_enc.c b/crypto/evp/evp_enc.c
index ef66cb1de5..bb6dd67c8c 100644
--- a/crypto/evp/evp_enc.c
+++ b/crypto/evp/evp_enc.c
@@ -286,7 +286,7 @@ int is_partially_overlapping(const void *ptr1, const void *ptr2, int len)
*/
int overlapped = (len > 0) & (diff != 0) & ((diff < (PTRDIFF_T)len) |
(diff > (0 - (PTRDIFF_T)len)));
- assert(!overlapped);
+
return overlapped;
}