pgsql: Stop reading uninitialized memory in heap_inplace_lock(). - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Stop reading uninitialized memory in heap_inplace_lock().
Date
Msg-id E1t40ZW-002FiD-TK@gemulon.postgresql.org
Whole thread Raw
List 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_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(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Refactor GetLockStatusData() to skip backends/groups without fas
Next
From: Tom Lane
Date:
Subject: pgsql: Generalize plpgsql's heuristic for importing expanded objects.