pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Initialize t_self and t_tableOid in statext_expressions_load
Date: Tue, 13 Apr 2021 22:53:59 +0000
Message-ID: <E1lWRux-0002oK-4E@gemulon.postgresql.org> (raw)

Initialize t_self and t_tableOid in statext_expressions_load

The function is building a fake heap tuple, but left some of the header
fields (tid and table OID) uninitialized. Per Coverity report.

Reported-by: Ranier Vilela
Discussion: https://postgr.es/m/CAEudQApj6h8tZ0-eP5Af5PKc5NG1YUc7=SdN_99YoHS51fKa0Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/20661c15db8f430d4880ba685e6b12afa271c1ac

Modified Files
--------------
src/backend/statistics/extended_stats.c | 2 ++
1 file changed, 2 insertions(+)



Message-ID: <E1lWRux-0002oK-4E@gemulon.postgresql.org>
Permalink:  ../E1lWRux-0002oK-4E@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lWRux-0002oK-4E@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tomas.vondra@postgresql.org
  Subject: Re: pgsql: Initialize t_self and t_tableOid in statext_expressions_load
  In-Reply-To: <E1lWRux-0002oK-4E@gemulon.postgresql.org>
  References: <E1lWRux-0002oK-4E@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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