From dd9879c67fe016b39a1b39b86e4977c4d1a28370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Chlup?= Date: Tue, 10 Sep 2024 16:53:13 +0200 Subject: [PATCH] Fix off by one error in Alias/Context length check --- native/mod_manager/mod_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/mod_manager/mod_manager.c b/native/mod_manager/mod_manager.c index 2c5d6671..9a5f4130 100644 --- a/native/mod_manager/mod_manager.c +++ b/native/mod_manager/mod_manager.c @@ -1224,7 +1224,7 @@ static int check_context_alias_length(const char *str, int limit) if (str[i] == ',') { len = 0; } - if (len > limit) { + if (len >= limit) { return 1; } len++;