Skip to content

Commit

Permalink
rls: fix possible buffer overrun
Browse files Browse the repository at this point in the history
Fixes Coverity CID 40772
  • Loading branch information
razvancrainea committed Oct 24, 2016
1 parent ee6b480 commit 8e90911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/rls/notify.c
Expand Up @@ -1078,7 +1078,7 @@ int rls_get_resource_list(str *filename, str *selector, str *username, str *doma
path.s = path_buf;
path.len = 0;
if (selector->s) {
while (checked < selector->len && path.len <= MAX_PATH_LEN)
while (checked < selector->len && path.len + 8 <= MAX_PATH_LEN)
{
if (selector->s[checked] == '/')
{
Expand Down

0 comments on commit 8e90911

Please sign in to comment.