]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
core_namemap.c: 2048 hashtable buckets should be sufficient
authorTomas Mraz <tomas@openssl.org>
Fri, 16 Aug 2024 13:54:15 +0000 (15:54 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 21 Aug 2024 13:21:26 +0000 (15:21 +0200)
It is unlikely we would need more than 4000 names and even
with more names (up to 8192) it would still work, just
the performance fo the namemap would degrade.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/24504)

crypto/core_namemap.c
fuzz/corpora

index 0cb96b562e0c327481de0ad686c05faffbbe3864..107671aabb9788ec2ee11c26dbaa9438d8df3438 100644 (file)
@@ -13,7 +13,7 @@
 #include "internal/sizes.h"
 #include "crypto/context.h"
 
-#define NAMEMAP_HT_BUCKETS 4096
+#define NAMEMAP_HT_BUCKETS 2048
 
 HT_START_KEY_DEFN(namenum_key)
 HT_DEF_KEY_FIELD_CHAR_ARRAY(name, 64)
index e77927ec1b3b3633d6fd2d905df6fdc59810c9e0..9f7667061314ecf9a287ce1c9702073ca1e345e3 160000 (submodule)
@@ -1 +1 @@
-Subproject commit e77927ec1b3b3633d6fd2d905df6fdc59810c9e0
+Subproject commit 9f7667061314ecf9a287ce1c9702073ca1e345e3