pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Validate ltree siglen GiST option to be int-aligned
Date: Sun, 23 Apr 2023 11:31:26 +0000
Message-ID: <E1pqXwD-004UbT-6F@gemulon.postgresql.org> (raw)

Validate ltree siglen GiST option to be int-aligned

Unaligned siglen could lead to an unaligned access to subsequent key fields.

Backpatch to 13, where opclass options were introduced.

Reported-by: Alexander Lakhin
Bug: 17847
Discussion: https://postgr.es/m/17847-171232970bea406b%40postgresql.org
Reviewed-by: Tom Lane, Pavel Borisov, Alexander Lakhin
Backpatch-through: 13

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f4a4a18ecbdb74da70679c7bcaa395f66b68c4af

Modified Files
--------------
contrib/ltree/expected/ltree.out |  9 +++++++--
contrib/ltree/ltree_gist.c       | 17 ++++++++++++++++-
contrib/ltree/sql/ltree.sql      |  2 ++
doc/src/sgml/ltree.sgml          |  3 ++-
4 files changed, 27 insertions(+), 4 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1pqXwD-004UbT-6F@gemulon.postgresql.org>
Permalink:  ../E1pqXwD-004UbT-6F@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pqXwD-004UbT-6F@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Validate ltree siglen GiST option to be int-aligned
  In-Reply-To: <E1pqXwD-004UbT-6F@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