pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Validate ispell dictionaries more carefully. 5+ messages / 1 participants [nested] [flat]
* pgsql: Validate ispell dictionaries more carefully. @ 2019-11-02 20:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2019-11-02 20:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/8af1624e3f0efd2d029217a91d07bd3795f080a6 Modified Files -------------- src/backend/tsearch/spell.c | 25 ++++++++++++++++++++--- src/test/regress/expected/tsdicts.out | 34 ++++++++++++++++++++++++++++++++ src/test/regress/sql/tsdicts.sql | 37 +++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Validate ispell dictionaries more carefully. @ 2019-11-02 20:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2019-11-02 20:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/43753c2cfbdd9870e68671abcc9dd377881071b0 Modified Files -------------- src/backend/tsearch/spell.c | 25 ++++++++++++++++++++--- src/test/regress/expected/tsdicts.out | 34 ++++++++++++++++++++++++++++++++ src/test/regress/sql/tsdicts.sql | 37 +++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Validate ispell dictionaries more carefully. @ 2019-11-02 20:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2019-11-02 20:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/65cdf8bc1be4857724c3d0d0bfbaedac8231af5f Modified Files -------------- src/backend/tsearch/spell.c | 25 ++++++++++++++++++++--- src/test/regress/expected/tsdicts.out | 34 ++++++++++++++++++++++++++++++++ src/test/regress/sql/tsdicts.sql | 37 +++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Validate ispell dictionaries more carefully. @ 2019-11-02 20:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2019-11-02 20:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/680aabd2f9e88a1cb9e4808682a00ad50c2acf52 Modified Files -------------- src/backend/tsearch/spell.c | 25 ++++++++++++++++++++--- src/test/regress/expected/tsdicts.out | 34 ++++++++++++++++++++++++++++++++ src/test/regress/sql/tsdicts.sql | 37 +++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Validate ispell dictionaries more carefully. @ 2019-11-02 20:45 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2019-11-02 20:45 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/51b9ac5588bcb350bd9433307ee6a6236b01039b Modified Files -------------- src/backend/tsearch/spell.c | 25 ++++++++++++++++++++--- src/test/regress/expected/tsdicts.out | 34 ++++++++++++++++++++++++++++++++ src/test/regress/sql/tsdicts.sql | 37 +++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2019-11-02 20:45 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-11-02 20:45 pgsql: Validate ispell dictionaries more carefully. Tom Lane <tgl@sss.pgh.pa.us> 2019-11-02 20:45 pgsql: Validate ispell dictionaries more carefully. Tom Lane <tgl@sss.pgh.pa.us> 2019-11-02 20:45 pgsql: Validate ispell dictionaries more carefully. Tom Lane <tgl@sss.pgh.pa.us> 2019-11-02 20:45 pgsql: Validate ispell dictionaries more carefully. Tom Lane <tgl@sss.pgh.pa.us> 2019-11-02 20:45 pgsql: Validate ispell dictionaries more carefully. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox