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:07:36 +0000 (15:07 +0000)
commit3258e29a385f4800440a96a16889035a83aff437
tree3b2cffadaf2483b9f8d7fa96e9db2314aea60210
parentfd18736a6b970c9b772f9c1b3cda4adcd20c63e2
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)
(cherry picked from commit 7141ba31969d0b378d08104a51f8f99b9187b9d5)
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