From: Tomas Mraz Date: Fri, 16 Aug 2024 13:54:15 +0000 (+0200) Subject: core_namemap.c: 2048 hashtable buckets should be sufficient X-Git-Tag: openssl-3.4.0-alpha1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0b1d4d1b055bc87b26bb9bbfee437b12f0a4c89;p=thirdparty%2Fopenssl.git core_namemap.c: 2048 hashtable buckets should be sufficient 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 Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/24504) --- diff --git a/crypto/core_namemap.c b/crypto/core_namemap.c index 0cb96b562e0..107671aabb9 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 4096 +#define NAMEMAP_HT_BUCKETS 2048 HT_START_KEY_DEFN(namenum_key) HT_DEF_KEY_FIELD_CHAR_ARRAY(name, 64) diff --git a/fuzz/corpora b/fuzz/corpora index e77927ec1b3..9f766706131 160000 --- a/fuzz/corpora +++ b/fuzz/corpora @@ -1 +1 @@ -Subproject commit e77927ec1b3b3633d6fd2d905df6fdc59810c9e0 +Subproject commit 9f7667061314ecf9a287ce1c9702073ca1e345e3