From: INDIA\kanagavels Date: Wed, 18 Jun 2025 13:12:54 +0000 (+0530) Subject: Fixes #27831: Decreased NAMEMAP_HT_BUCKETS to 512. X-Git-Tag: openssl-3.4.2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07ea1eaae9e743351fe7ef564ed6746d184bfd72;p=thirdparty%2Fopenssl.git Fixes #27831: Decreased NAMEMAP_HT_BUCKETS to 512. Decreased the NAMEMAP_HT_BUCKETS value to 512, to avoid memory allocation fail issues. CLA: Trivial Signed-off-by: Kanagavel S Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/27850) (cherry picked from commit b3161bd9a9329be3d6bf6b29a06835e2721898bb) --- diff --git a/crypto/core_namemap.c b/crypto/core_namemap.c index 1083b14d79b..b33dc207569 100644 --- a/crypto/core_namemap.c +++ b/crypto/core_namemap.c @@ -13,7 +13,7 @@ #include "internal/sizes.h" #include "crypto/context.h" -#define NAMEMAP_HT_BUCKETS 2048 +#define NAMEMAP_HT_BUCKETS 512 HT_START_KEY_DEFN(namenum_key) HT_DEF_KEY_FIELD_CHAR_ARRAY(name, 64)