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;
|
op = *p;
|
||||||
*p = '\0';
|
if (*p != '\0')
|
||||||
p++;
|
{
|
||||||
|
*p = '\0';
|
||||||
|
p++;
|
||||||
|
}
|
||||||
|
|
||||||
while (*p && isspace((unsigned int)*p))
|
while (*p && isspace((unsigned int)*p))
|
||||||
p++;
|
p++;
|
||||||
|
|
Loading…
Reference in New Issue