From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Improve ispell dictionary's defenses against bad affix files. |
Date: | 2014-10-23 17:12:14 |
Message-ID: | E1XhLvq-0004vL-DZ@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/94de3a679bf0afe9bb15ffb7af066b7df58859af
Modified Files
--------------
src/backend/tsearch/spell.c | 70 +++++++++++++++++++++++++++----------------
1 file changed, 44 insertions(+), 26 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2014-10-23 17:57:00 | Re: pgsql: Perform less setup work for AFTER triggers at transaction start. |
Previous Message | Robert Haas | 2014-10-23 16:40:31 | pgsql: Perform less setup work for AFTER triggers at transaction start. |