diff options
author | Tom Lane | 2019-11-02 20:45:32 +0000 |
---|---|---|
committer | Tom Lane | 2019-11-02 20:45:32 +0000 |
commit | 8af1624e3f0efd2d029217a91d07bd3795f080a6 (patch) | |
tree | 3967183e381a8257273f799bc4b1089c6525d5e9 /contrib/seg/seg.c | |
parent | dc816e5815913e2b2ae2327a4d3e4d4416ed6898 (diff) |
Validate ispell dictionaries more carefully.
Using incorrect, or just mismatched, dictionary and affix files
could result in a crash, due to failure to cross-check offsets
obtained from the file. Add necessary validation, as well as
some Asserts for future-proofing.
Per bug #16050 from Alexander Lakhin. Back-patch to 9.6 where the
problem was introduced.
Arthur Zakirov, per initial investigation by Tomas Vondra
Discussion: https://postgr.es/m/[email protected]
Discussion: https://postgr.es/m/20191013012610.2p2fp3zzpoav7jzf@development
Diffstat (limited to 'contrib/seg/seg.c')
0 files changed, 0 insertions, 0 deletions