pgsql: Fix uninitialized slot array access during the upgrade.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix uninitialized slot array access during the upgrade.
Date: 2023-11-09 04:08:20
Message-ID: E1r0wL5-004awS-Mf@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix uninitialized slot array access during the upgrade.

Commit 29d0a77fa introduced fetching slot information from the old cluster
but didn't initialize the required array in all the code paths. So when
trying to access the array in verbose mode for the new cluster, it leads
to an uninitialized memory access.

Author: Vignesh C
Discussion: http://postgr.es/m/CALDaNm1tntGP5=CtMz=v+k3_PGv7kE9t6iWSgX-QiurAaFkhZw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a7db71ed2787e7dbf2c41473a2b7df2fcb55abd0

Modified Files
--------------
src/bin/pg_upgrade/info.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Dean Rasheed 2023-11-09 10:02:08 pgsql: Fix corner-case 64-bit integer subtraction bug on some platforms
Previous Message Michael Paquier 2023-11-09 01:08:21 pgsql: pg_stat_statements: Remove duplicated tests for SET statements