Skip to content

Commit

Permalink
Fix off by one error in Alias/Context length check
Browse files Browse the repository at this point in the history
  • Loading branch information
jajik committed Sep 10, 2024
1 parent ca38365 commit dd9879c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/mod_manager/mod_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit dd9879c

Please sign in to comment.