]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fixes #27831: Decreased NAMEMAP_HT_BUCKETS to 512.
authorINDIA\kanagavels <kanagavels@ami.com>
Wed, 18 Jun 2025 13:12:54 +0000 (18:42 +0530)
committerMatt Caswell <matt@openssl.org>
Mon, 30 Jun 2025 13:07:12 +0000 (14:07 +0100)
Decreased the NAMEMAP_HT_BUCKETS value to 512, to avoid memory
allocation fail issues.

CLA: Trivial

Signed-off-by: Kanagavel S <kanagavels@ami.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27850)

(cherry picked from commit b3161bd9a9329be3d6bf6b29a06835e2721898bb)

crypto/core_namemap.c

index 1083b14d79b479315103c103a6dcff8442327ead..b33dc20756940ba2967889c940fd12e317baaaa7 100644 (file)
@@ -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)