pgsql: Initialize t_self and t_tableOid in statext_expressions_load

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Initialize t_self and t_tableOid in statext_expressions_load
Date: 2021-04-13 22:53:59
Message-ID: E1lWRux-0002oK-4E@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2021-04-14 03:26:41 pgsql: Use NameData datatype for slotname in stats.
Previous Message Peter Geoghegan 2021-04-13 19:58:58 pgsql: Don't truncate heap when VACUUM's failsafe is in effect.