diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-23 13:11:34 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-23 13:11:34 -0400 |
commit | 385f0d98a4357f144e7ed9b18db7ead9079b9318 (patch) | |
tree | 21bf1bdfb5c00a10822f3c3e95b85fd5aa18687c /src/tutorial/funcs.c | |
parent | d45cd9e19ffdab8758f088a36be0cd7f3588533c (diff) | |
download | postgresql-385f0d98a4357f144e7ed9b18db7ead9079b9318.tar.gz postgresql-385f0d98a4357f144e7ed9b18db7ead9079b9318.zip |
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.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions