diff options
author | Matt Caswell <matt@openssl.org> | 2021-02-19 18:03:43 +0100 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-02-24 23:37:22 +0100 |
commit | d84f5515faf3fe00ed5eeca7e7b8b041be863e90 (patch) | |
tree | b2e8245e0a152f16b5bb2c5260e47781a6261c9d /doc/man3/CMS_EnvelopedData_create.pod | |
parent | Fix string termination and length setting in OSSL_PARAM_BLD_push_utf8_string() (diff) | |
download | openssl-d84f5515faf3fe00ed5eeca7e7b8b041be863e90.tar.xz openssl-d84f5515faf3fe00ed5eeca7e7b8b041be863e90.zip |
Don't hold a lock when calling a callback in ossl_namemap_doall_names
We don't want to hold a read lock when calling a user supplied callback.
That callback could do anything so the risk of a deadlock is high.
Instead we collect all the names first inside the read lock, and then
subsequently call the user callback outside the read lock.
Fixes #14225
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14250)
Diffstat (limited to 'doc/man3/CMS_EnvelopedData_create.pod')
0 files changed, 0 insertions, 0 deletions