Re: [PATCH] Fix Uninitialized scalar variable (UNINIT) (src/backend/access/heap/heapam_handler.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [PATCH] Fix Uninitialized scalar variable (UNINIT) (src/backend/access/heap/heapam_handler.c)
Date: 2020-08-25 23:15:02
Message-ID: CAEudQAok09wvdn28eca+QBFA_WpeppbKL+Bt+19_15u+G5FEJw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Em ter., 25 de ago. de 2020 às 20:13, Alvaro Herrera <
alvherre(at)2ndquadrant(dot)com> escreveu:

> On 2020-Aug-25, Ranier Vilela wrote:
>
> > Em ter., 25 de ago. de 2020 às 19:45, Alvaro Herrera <
> > alvherre(at)2ndquadrant(dot)com> escreveu:
> >
> > > On 2020-Aug-25, Ranier Vilela wrote:
> > >
> > > > If the variable hscan->rs_cblock is InvalidBlockNumber the test can
> > > > protect root_offsets fail.
> > >
> > > When does that happen?
> >
> > At first pass into the while loop?
> > hscan->rs_cblock is InvalidBlockNumber, what happens?
>
> No, it is set when the page is read.
>
And it is guaranteed that, rs_cblock is not InvalidBlockNumber when the
page is read?

Ranier Vilela

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2020-08-25 23:18:08 Re: [PATCH] Fix Uninitialized scalar variable (UNINIT) (src/backend/access/heap/heapam_handler.c)
Previous Message Alvaro Herrera 2020-08-25 23:13:20 Re: [PATCH] Fix Uninitialized scalar variable (UNINIT) (src/backend/access/heap/heapam_handler.c)