]> git.ipfire.org Git - thirdparty/openssl.git/commit
add cmp_thunk function to ossl_bsearch
authorNeil Horman <nhorman@openssl.org>
Tue, 13 Jan 2026 21:25:21 +0000 (16:25 -0500)
committerNeil Horman <nhorman@openssl.org>
Sat, 7 Feb 2026 18:11:02 +0000 (13:11 -0500)
commit25a51c5cacbe7b1d1aadb3037a96bdfd09faaf45
tree19d264f276a807d5ae99a61f0f1f668599f52f50
parentbe54bba64033f0ee4b4b34d0c381c95379380a0c
add cmp_thunk function to ossl_bsearch

Add the initial groundwork to allow for the use of a thunking function
with bsearch.  Normally our comparison function signature doesn't match
the type of the pointer we call it through, leading to ubsan errors,
this lets those signatures match and gives us a place to do the proper
casting

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
MergeDate: Sat Feb  7 18:11:11 2026
(Merged from https://github.com/openssl/openssl/pull/29640)
crypto/bsearch.c
crypto/objects/obj_dat.c
crypto/property/property_query.c
crypto/stack/stack.c
include/internal/cryptlib.h