]> git.ipfire.org Git - thirdparty/openssl.git/commit
Avoid loading of a dynamic engine twice
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 19 Nov 2021 10:33:34 +0000 (11:33 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 23 Nov 2021 05:08:16 +0000 (06:08 +0100)
commite2571e02d2b0cd83ed1c79d384fe941f27e603c0
treee7227596e8c2dcef3d83c310fbfd5db1e117caae
parent4599ea9fe31953c0c50738ed4b91ade76a693356
Avoid loading of a dynamic engine twice

Use the address of the bind function as a DYNAMIC_ID,
since the true name of the engine is not known
before the bind function returns,
but invoking the bind function before the engine
is unloaded results in memory corruption.

Fixes #17023

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/17073)
crypto/engine/eng_dyn.c
crypto/engine/eng_lib.c
crypto/engine/eng_list.c
crypto/engine/eng_local.h