]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fixes #27831: Decreased NAMEMAP_HT_BUCKETS to 512. master
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 10:28:56 +0000 (11:28 +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)

crypto/core_namemap.c

index f36f070fa2abcff2aca93a84b3d69aeb02231726..4b1380a6f2dc11d4add356ef6e8275bae3b6082e 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)