pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix an uninitialized access in hash_xlog_squeeze_page().
Date: Fri, 01 Dec 2023 05:01:40 +0000
Message-ID: <E1r8vel-0083s0-Lk@gemulon.postgresql.org> (raw)

Fix an uninitialized access in hash_xlog_squeeze_page().

Commit 861f86beea changed hash_xlog_squeeze_page() to start reading
the write buffer conditionally but forgot to initialize it leading to an
uninitialized access.

Reported-by: Alexander Lakhin
Author: Hayato Kuroda
Reviewed-by: Alexander Lakhin, Amit Kapila
Discussion: http://postgr.es/m/62ed1a9f-746a-8e86-904b-51b9b806a1d9@gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/access/hash/hash_xlog.c      |  2 +-
src/test/regress/expected/hash_index.out | 14 ++++++++++++++
src/test/regress/sql/hash_index.sql      | 17 +++++++++++++++++
3 files changed, 32 insertions(+), 1 deletion(-)



Message-ID: <E1r8vel-0083s0-Lk@gemulon.postgresql.org>
Permalink:  ../E1r8vel-0083s0-Lk@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1r8vel-0083s0-Lk@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: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Fix an uninitialized access in hash_xlog_squeeze_page().
  In-Reply-To: <E1r8vel-0083s0-Lk@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