[openssl/openssl] eb0935: stack: fix searching when the stack isn't sorted.

Pauli noreply at github.com
Fri Apr 28 07:26:37 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: eb0935fd21220708e4321374380db497e9c5ecdf
      https://github.com/openssl/openssl/commit/eb0935fd21220708e4321374380db497e9c5ecdf
  Author: Pauli <pauli at openssl.org>
  Date:   2023-04-28 (Fri, 28 Apr 2023)

  Changed paths:
    M crypto/stack/stack.c

  Log Message:
  -----------
  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 at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20782)


  Commit: 3ef5b6009767aeff2fea47144af36cd13bd19d6d
      https://github.com/openssl/openssl/commit/3ef5b6009767aeff2fea47144af36cd13bd19d6d
  Author: Pauli <pauli at openssl.org>
  Date:   2023-04-28 (Fri, 28 Apr 2023)

  Changed paths:
    M crypto/x509/x509_lu.c

  Log Message:
  -----------
  x509: sort stacks prior to searching

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


Compare: https://github.com/openssl/openssl/compare/4df13d1054e1...3ef5b6009767


More information about the openssl-commits mailing list