asn1: sort stacks before using find
authorPauli <pauli@openssl.org>
Thu, 27 Apr 2023 00:54:38 +0000 (10:54 +1000)
committerPauli <pauli@openssl.org>
Mon, 1 May 2023 07:14:42 +0000 (17:14 +1000)
commit0feb90ba6093a59dcea0279d699169f604600d49
tree148676b8787c439570435e7062037255fd5c74d3
parentb5a635dc2113e1bc807ea358a670146c813df989
asn1: sort stacks before using find

a_strnid.c doesn't have a lock for the sort.  This is no worse than the
existing code which sorted silently without a lock.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/20842)
crypto/asn1/a_strnid.c
crypto/asn1/asn_mime.c