From 77702803d9da0d0d559a7ac7956ce2cfbae9ebcc 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 95a77b44..94fb65e7 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++;