pgsql: Improve ispell dictionary's defenses against bad affix files.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Improve ispell dictionary's defenses against bad affix files.
Дата
Msg-id E1XhLvq-0004vN-Dd@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Improve ispell dictionary's defenses against bad affix files.

Don't crash if an ispell dictionary definition contains flags but not
any compound affixes.  (This isn't a security issue since only superusers
can install affix files, but still it's a bad thing.)

Also, be more careful about detecting whether an affix-file FLAG command
is old-format (ispell) or new-format (myspell/hunspell).  And change the
error message about mixed old-format and new-format commands into something
intelligible.

Per bug #11770 from Emre Hasegeli.  Back-patch to all supported branches.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/21fa26b6594dc064310bee1cf725c68591ab8032

Modified Files
--------------
src/backend/tsearch/spell.c |   70 +++++++++++++++++++++++++++----------------
1 file changed, 44 insertions(+), 26 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Improve ispell dictionary's defenses against bad affix files.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Improve ispell dictionary's defenses against bad affix files.