From 35b0e8d0b7550c2d31e07c5052c7a7ea1603a2fa Mon Sep 17 00:00:00 2001 From: samuel40791765 Date: Fri, 24 May 2024 00:09:33 +0000 Subject: [PATCH] add null termination count --- crypto/conf/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/conf/conf.c b/crypto/conf/conf.c index f4dd0734154..85571f4991c 100644 --- a/crypto/conf/conf.c +++ b/crypto/conf/conf.c @@ -644,7 +644,7 @@ int CONF_modules_load_file(const char *filename, const char *appname, char *CONF_get1_default_config_file(void) { const char *temp = "No support for Config files in AWS-LC."; - size_t temp_len = strlen(temp); + size_t temp_len = strlen(temp) + 1; char *ret = (char *)OPENSSL_malloc(temp_len); if(ret == NULL) {