Fix an uninitialized access in hash_xlog_squeeze_page().
authorAmit Kapila <akapila@postgresql.org>
Fri, 1 Dec 2023 04:44:36 +0000 (10:14 +0530)
committerAmit Kapila <akapila@postgresql.org>
Fri, 1 Dec 2023 04:52:13 +0000 (10:22 +0530)
commitf66fcc5cd616da8d81a2d2f9b80a9f080796f4b6
tree6a6b9dad90f38c9e1c979407b7dd44ac45c7e2f1
parentaa11a9c14902b7bcb1d73533a0403dc50361112a
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
src/backend/access/hash/hash_xlog.c
src/test/regress/expected/hash_index.out
src/test/regress/sql/hash_index.sql