Improve regression test coverage for src/backend/tsearch/spell.c.
Tom Lane <tgl@sss.pgh.pa.us>
Improve regression test coverage for src/backend/tsearch/spell.c. In passing, throw an error if the AF count is too small, rather than just silently discarding extra affix entries. Note that the new regression test cases require installing the updated src/backend/tsearch/dicts files. Arthur Zakirov Discussion: https://postgr.es/m/20180413113447.GA32474@zakirov.localdomain
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tsearch/dicts/hunspell_sample_long.affix | modified | +22 −3 |
| src/backend/tsearch/dicts/hunspell_sample_long.dict | modified | +3 −0 |
| src/backend/tsearch/dicts/hunspell_sample_num.affix | modified | +8 −0 |
| src/backend/tsearch/dicts/hunspell_sample_num.dict | modified | +2 −1 |
| src/backend/tsearch/spell.c | modified | +7 −2 |
| src/test/regress/expected/tsdicts.out | modified | +30 −0 |
| src/test/regress/sql/tsdicts.sql | modified | +5 −0 |
Discussion
- BUG #15150: Reading uninitialised value in NISortAffixes (tsearch/spell.c) 6 messages · 2018-04-12 → 2018-04-13