libpkgconf: personality: fix out of boundary access #193

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

View File

@ -168,7 +168,7 @@ personality_keyword_set(pkgconf_cross_personality_t *p, const size_t lineno, con
pair->func(p, keyword, lineno, pair->offset, value); pair->func(p, keyword, lineno, pair->offset, value);
} }
static const pkgconf_parser_operand_func_t personality_parser_ops[] = { static const pkgconf_parser_operand_func_t personality_parser_ops[256] = {
[':'] = (pkgconf_parser_operand_func_t) personality_keyword_set [':'] = (pkgconf_parser_operand_func_t) personality_keyword_set
}; };