aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/datum.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-11-02 16:45:32 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-11-02 16:45:32 -0400
commit43753c2cfbdd9870e68671abcc9dd377881071b0 (patch)
tree10f862217b6621ad94015607fbc1bf847ed5c801 /src/backend/utils/adt/datum.c
parent7963c4c4b7821f286e335c8aed66821c87404ce3 (diff)
downloadpostgresql-43753c2cfbdd9870e68671abcc9dd377881071b0.tar.gz
postgresql-43753c2cfbdd9870e68671abcc9dd377881071b0.zip
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
Diffstat (limited to 'src/backend/utils/adt/datum.c')
0 files changed, 0 insertions, 0 deletions