libpkgconf: parser: fix out of boundary access #192

Closed
stoeckmann wants to merge 1 commits from parser into master
1 changed files with 5 additions and 2 deletions

View File

@ -66,8 +66,11 @@ pkgconf_parser_parse(FILE *f, void *data, const pkgconf_parser_operand_func_t *o
}
op = *p;
*p = '\0';
p++;
if (*p != '\0')
{
*p = '\0';
p++;
}
while (*p && isspace((unsigned int)*p))
p++;