git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: dc816e5) | patch
Validate ispell dictionaries more carefully.
Sat, 2 Nov 2019 20:45:32 +0000 (16:45 -0400)
Sat, 2 Nov 2019 20:45:32 +0000 (16:45 -0400)
commit 8af1624e3f0efd2d029217a91d07bd3795f080a6
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/16050-024ae722464ab604@postgresql.org
Discussion: https://postgr.es/m/20191013012610.2p2fp3zzpoav7jzf@development
src/backend/tsearch/spell.c diff | blob | blame | history
src/test/regress/expected/tsdicts.out diff | blob | blame | history
src/test/regress/sql/tsdicts.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /