Initialize t_self and t_tableOid in statext_expressions_load
Tomas Vondra <tomas.vondra@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/statistics/extended_stats.c | modified | +2 −0 |
Discussion
- Uninitialized scalar variable (UNINIT) (src/backend/statistics/extended_stats.c) 10 messages · 2021-04-11 → 2021-04-13