From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Initialize unused ExprEvalStep fields.
Date: Mon, 29 Jan 2018 15:16:59 -0500
Message-ID: <32346.1517257019@sss.pgh.pa.us> (raw)
In-Reply-To: <E1egFhq-0005nE-KL@gemulon.postgresql.org>
References: <E1egFhq-0005nE-KL@gemulon.postgresql.org>
Andres Freund <andres@anarazel.de> writes:
> Initialize unused ExprEvalStep fields.
> ExecPushExprSlots didn't initialize ExprEvalStep's resvalue/resnull
> steps as it didn't use them. That caused wrong valgrind warnings for
> an upcoming patch, so zero-intialize.
Check ...
> Also zero-initialize all scratch ExprEvalStep's allocated on the
> stack, to avoid issues with similar future omissions of non-critial
> data.
Dunno that that's a good idea; it will also serve to hide valid warnings.
regards, tom lane
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: tgl@sss.pgh.pa.us, andres@anarazel.de
Subject: Re: pgsql: Initialize unused ExprEvalStep fields.
In-Reply-To: <32346.1517257019@sss.pgh.pa.us>
References: <E1egFhq-0005nE-KL@gemulon.postgresql.org> <32346.1517257019@sss.pgh.pa.us>
* 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