pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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:49 +0000
Message-ID: <E1adQp3-00087S-SR@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_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/185c3d00aac10cc333997fa808372bfcfdda6118

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


view thread (11+ messages)  latest in thread

Message-ID: <E1adQp3-00087S-SR@gemulon.postgresql.org>
Permalink:  ../E1adQp3-00087S-SR@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1adQp3-00087S-SR@gemulon.postgresql.org

 · 

reply

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: <E1adQp3-00087S-SR@gemulon.postgresql.org>
  References: <E1adQp3-00087S-SR@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