Pipeline output/input buf arrays must live until the EVP_Cipher is called
authorMatt Caswell <matt@openssl.org>
Fri, 21 Oct 2022 13:08:29 +0000 (14:08 +0100)
committerPauli <pauli@openssl.org>
Thu, 23 Feb 2023 23:58:19 +0000 (10:58 +1100)
commitdf9c7ceefef59cc870c80346906471fabec62494
tree773f03ccb40a5e8bbfd09d81e887dac0c331d6cc
parent24c7d367b612fc5a4a84571da1e54a01a6ee813f
Pipeline output/input buf arrays must live until the EVP_Cipher is called

The pipeline input/output buf arrays must remain accessible to the
EVP_CIPHER_CTX until EVP_Cipher is subsequently called. This fixes an
asan error discovered by the newly added pipeline test.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20208)
ssl/record/ssl3_record.c