From f0b1d4d1b055bc87b26bb9bbfee437b12f0a4c89 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Fri, 16 Aug 2024 15:54:15 +0200 Subject: [PATCH] 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) --- crypto/core_namemap.c | 2 +- fuzz/corpora | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/core_namemap.c b/crypto/core_namemap.c index 0cb96b562e..107671aabb 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 e77927ec1b..9f76670613 160000 --- a/fuzz/corpora +++ b/fuzz/corpora @@ -1 +1 @@ -Subproject commit e77927ec1b3b3633d6fd2d905df6fdc59810c9e0 +Subproject commit 9f7667061314ecf9a287ce1c9702073ca1e345e3