Skip to content

Commit a27c692

Browse files
authored
Merge pull request #279 from jajik/off-by-one
Fix off by one error in Alias/Context length check
2 parents 6d264bd + 7770280 commit a27c692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/mod_manager/mod_manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ static int check_context_alias_length(const char *str, int limit)
12241224
if (str[i] == ',') {
12251225
len = 0;
12261226
}
1227-
if (len > limit) {
1227+
if (len >= limit) {
12281228
return 1;
12291229
}
12301230
len++;

0 commit comments

Comments
 (0)