pgsql: Stop reading uninitialized memory in heap_inplace_lock().

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Stop reading uninitialized memory in heap_inplace_lock().
Date: 2024-10-24 16:20:26
Message-ID: E1t40ZW-002FiO-Vk@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3e5ea478d875c15e7ba47778568b2f7edb54a0f1

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-10-24 17:28:36 pgsql: Generalize plpgsql's heuristic for importing expanded objects.
Previous Message Fujii Masao 2024-10-24 15:21:39 pgsql: Refactor GetLockStatusData() to skip backends/groups without fas