pgsql: Fix uninitialized memory bug

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix uninitialized memory bug
Date: 2021-04-22 20:05:31
Message-ID: E1lZfZr-0005An-NR@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix uninitialized memory bug

Have interested callers of find_inheritance_children set the
detached_exist value to false prior to calling it, so that that routine
only has to set it true in the rare cases where it is necessary. Don't
touch it otherwise.

Per buildfarm member thorntail (which reported a UBSan failure here).

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/43b55ec4bc3bc06596d966391f16defe016310ec

Modified Files
--------------
src/backend/catalog/pg_inherits.c | 5 +----
src/backend/partitioning/partdesc.c | 1 +
2 files changed, 2 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2021-04-22 20:56:07 pgsql: Fix some trailing whitespace in documentation files
Previous Message Bruce Momjian 2021-04-22 20:01:29 pgsql: doc: mention <link> can be inside of <command>, but not <xref>