]> git.ipfire.org Git - thirdparty/openssl.git/commit
stack: fix searching when the stack isn't sorted.
authorPauli <pauli@openssl.org>
Thu, 20 Apr 2023 06:04:10 +0000 (16:04 +1000)
committerTomas Mraz <tomas@openssl.org>
Fri, 28 Apr 2023 07:24:06 +0000 (09:24 +0200)
commiteb0935fd21220708e4321374380db497e9c5ecdf
tree4b616c404dd252f3c875c08e06c4d97c377dfa83
parent4df13d1054e143f1cbf13fa347491807289f87b7
stack: fix searching when the stack isn't sorted.

More specifically, don't sort the stack when searching when it isn't sorted.
This avoids a race condition.

Fixes #20135

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20782)
crypto/stack/stack.c