aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/tsquery_op.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-10-23 13:11:41 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-10-23 13:11:41 -0400
commit94de3a679bf0afe9bb15ffb7af066b7df58859af (patch)
tree6f5867194d1c1147e3a1f3ec1be5b14a06f40bba /src/backend/utils/adt/tsquery_op.c
parent98144378c4811b71728e5d78c043d6a147e5e0bc (diff)
downloadpostgresql-94de3a679bf0afe9bb15ffb7af066b7df58859af.tar.gz
postgresql-94de3a679bf0afe9bb15ffb7af066b7df58859af.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/backend/utils/adt/tsquery_op.c')
0 files changed, 0 insertions, 0 deletions