libpkgconf: parser: fix out of boundary access #192
|
@ -66,8 +66,11 @@ pkgconf_parser_parse(FILE *f, void *data, const pkgconf_parser_operand_func_t *o
|
|||
}
|
||||
|
||||
op = *p;
|
||||
if (*p != '\0')
|
||||
{
|
||||
*p = '\0';
|
||||
p++;
|
||||
}
|
||||
|
||||
while (*p && isspace((unsigned int)*p))
|
||||
p++;
|
||||
|
|
Loading…
Reference in New Issue