From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: ltree: Zero padding bytes when allocating memory for externally
Date: Tue, 08 Mar 2016 23:13:46 +0000
Message-ID: <E1adQp0-00086L-Bl@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
ltree: Zero padding bytes when allocating memory for externally visible data.
ltree/ltree_gist/ltxtquery's headers stores data at MAXALIGN alignment,
requiring some padding bytes. So far we left these uninitialized. Zero
those by using palloc0.
Author: Andres Freund
Reported-By: Andres Freund / valgrind / buildarm animal skink
Backpatch: 9.1-
Branch
------
REL9_5_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/598a01de69b9e8b3cd106935e41db45d1b4853c4
Modified Files
--------------
contrib/ltree/_ltree_gist.c | 14 +++++++-------
contrib/ltree/_ltree_op.c | 8 ++++----
contrib/ltree/ltree_gist.c | 10 +++++-----
contrib/ltree/ltree_op.c | 6 +++---
contrib/ltree/ltxtquery_io.c | 2 +-
5 files changed, 20 insertions(+), 20 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: andres@anarazel.de
Subject: Re: pgsql: ltree: Zero padding bytes when allocating memory for externally
In-Reply-To: <E1adQp0-00086L-Bl@gemulon.postgresql.org>
References: <E1adQp0-00086L-Bl@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