pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix array allocation bugs in SetExplainExtensionState. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix array allocation bugs in SetExplainExtensionState. @ 2025-09-25 15:58 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Robert Haas @ 2025-09-25 15:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix array allocation bugs in SetExplainExtensionState. If we already have an extension_state array but see a new extension_id much larger than the highest the extension_id we've previously seen, the old code might have failed to expand the array to a large enough size, leading to disaster. Also, if we don't have an extension array at all and need to create one, we should make sure that it's big enough that we don't have to resize it instantly. Reported-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: http://postgr.es/m/2949591.1758570711@sss.pgh.pa.us Backpatch-through: 18 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/803ef0ed49eec57990053da1091f9e3b5a7fb839 Modified Files -------------- src/backend/commands/explain_state.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix array allocation bugs in SetExplainExtensionState. @ 2025-09-25 15:58 Robert Haas <rhaas@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: Robert Haas @ 2025-09-25 15:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix array allocation bugs in SetExplainExtensionState. If we already have an extension_state array but see a new extension_id much larger than the highest the extension_id we've previously seen, the old code might have failed to expand the array to a large enough size, leading to disaster. Also, if we don't have an extension array at all and need to create one, we should make sure that it's big enough that we don't have to resize it instantly. Reported-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: http://postgr.es/m/2949591.1758570711@sss.pgh.pa.us Backpatch-through: 18 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/694057d236b114f8c750b996b9ca5b8a07424650 Modified Files -------------- src/backend/commands/explain_state.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-09-25 15:58 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-09-25 15:58 pgsql: Fix array allocation bugs in SetExplainExtensionState. Robert Haas <rhaas@postgresql.org> 2025-09-25 15:58 pgsql: Fix array allocation bugs in SetExplainExtensionState. Robert Haas <rhaas@postgresql.org>
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