Fix the overlapping check for fragmented "Update" operations
authorMatt Caswell <matt@openssl.org>
Tue, 24 Jan 2017 12:57:34 +0000 (12:57 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 25 Jan 2017 15:02:44 +0000 (15:02 +0000)
commit7141ba31969d0b378d08104a51f8f99b9187b9d5
tree58735ecf1d4e9b266e2b928f13d018d2118f05c3
parent0b96d77a62d8ac9a45ac1dda47560ced676b5b8d
Fix the overlapping check for fragmented "Update" operations

When doing in place encryption the overlapping buffer check can fail
incorrectly where we have done a partial block "Update" operation. This
fixes things to take account of any pending partial blocks.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2275)
crypto/evp/e_aes.c
crypto/evp/e_des3.c
crypto/evp/evp_enc.c
crypto/evp/evp_err.c
crypto/evp/evp_locl.h
include/openssl/evp.h
test/evp_test.c