pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Stop reading uninitialized memory in heap_inplace_lock().
Date: Thu, 24 Oct 2024 16:20:26 +0000
Message-ID: <E1t40ZW-002FiD-TK@gemulon.postgresql.org> (raw)

Stop reading uninitialized memory in heap_inplace_lock().

Stop computing a never-used value.  This removes the read; the read had
no functional implications.  Back-patch to v12, like commit
a07e03fd8fa7daf4d1356f7cb501ffe784ea6257.

Reported by Alexander Lakhin.

Discussion: https://postgr.es/m/6c92f59b-f5bc-e58c-9bdd-d1f21c17c786@gmail.com

Branch
------
REL_17_STABLE

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

Modified Files
--------------
src/backend/access/heap/heapam.c                   |  3 +--
.../isolation/expected/intra-grant-inplace.out     | 24 ++++++++++++++++++++++
src/test/isolation/specs/intra-grant-inplace.spec  |  8 ++++++++
3 files changed, 33 insertions(+), 2 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1t40ZW-002FiD-TK@gemulon.postgresql.org>
Permalink:  ../E1t40ZW-002FiD-TK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1t40ZW-002FiD-TK@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: noah@leadboat.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Stop reading uninitialized memory in heap_inplace_lock().
  In-Reply-To: <E1t40ZW-002FiD-TK@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