pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Avoid fetching past the end of the indoption array. 2+ messages / 1 participants [nested] [flat]
* pgsql: Avoid fetching past the end of the indoption array. @ 2019-04-07 22:19 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2019-04-07 22:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Avoid fetching past the end of the indoption array. pg_get_indexdef_worker carelessly fetched indoption entries even for non-key index columns that don't have one. 99.999% of the time this would be harmless, since the code wouldn't examine the value ... but some fine day this will be a fetch off the end of memory, resulting in SIGSEGV. Detected through valgrind testing. Odd that the buildfarm's valgrind critters haven't noticed. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/80a96e066eecb6bd1788964b5911a405d932a784 Modified Files -------------- src/backend/utils/adt/ruleutils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Avoid fetching past the end of the indoption array. @ 2019-04-07 22:19 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2019-04-07 22:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Avoid fetching past the end of the indoption array. pg_get_indexdef_worker carelessly fetched indoption entries even for non-key index columns that don't have one. 99.999% of the time this would be harmless, since the code wouldn't examine the value ... but some fine day this will be a fetch off the end of memory, resulting in SIGSEGV. Detected through valgrind testing. Odd that the buildfarm's valgrind critters haven't noticed. Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a7ca25cf787c563a92eef5eff1a8d2bb1364a992 Modified Files -------------- src/backend/utils/adt/ruleutils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-04-07 22:19 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-04-07 22:19 pgsql: Avoid fetching past the end of the indoption array. Tom Lane <tgl@sss.pgh.pa.us> 2019-04-07 22:19 pgsql: Avoid fetching past the end of the indoption array. 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