postgresql/src/backend/tsearch
Tom Lane b34d6f03db 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.
2014-10-23 13:12:00 -04:00
..
dict_ispell.c Avoid memcpy() with same source and destination address. 2014-03-07 13:14:33 +02:00
dict_simple.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dict_synonym.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dict_thesaurus.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dict.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
hunspell_sample.affix Add regression tests for ispell, synonym and thesaurus dictionaries. 2007-09-11 11:54:42 +00:00
ispell_sample.affix Add regression tests for ispell, synonym and thesaurus dictionaries. 2007-09-11 11:54:42 +00:00
ispell_sample.dict Add regression tests for ispell, synonym and thesaurus dictionaries. 2007-09-11 11:54:42 +00:00
Makefile Update copyright for 2014 2014-01-07 16:05:30 -05:00
regis.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
spell.c Improve ispell dictionary's defenses against bad affix files. 2014-10-23 13:12:00 -04:00
synonym_sample.syn Add prefix support for synonym dictionary 2009-08-14 14:53:20 +00:00
thesaurus_sample.ths Remove extra newlines at end and beginning of files, add missing newlines 2010-08-19 05:57:36 +00:00
to_tsany.c Use memmove() instead of memcpy() for copying overlapping regions. 2014-02-10 09:57:59 +02:00
ts_locale.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
ts_parse.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
ts_selfuncs.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
ts_typanalyze.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
ts_utils.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
wparser_def.c pgindent run for 9.4 2014-05-06 12:12:18 -04:00
wparser.c Update copyright for 2014 2014-01-07 16:05:30 -05:00