[COMMITTERS] pgsql: Fix uninitialized variable in dshash.c. - Mailing list pgsql-committers

From Andres Freund
Subject [COMMITTERS] pgsql: Fix uninitialized variable in dshash.c.
Date
Msg-id E1du6oE-0004Ms-18@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix uninitialized variable in dshash.c.

A bugfix for commit 8c0d7bafad36434cb08ac2c78e69ae72c194ca20.  The code
would have crashed if hashtable->size_log2 ever had the same value as
hashtable->control->size_log2 by coincidence.

Per Valgrind.

Author: Thomas Munro
Reported-By: Tomas Vondra
Discussion: https://postgr.es/m/e72fb33c-4f31-f276-e972-263d9b59554d%402ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0fb9e4ace5ce4d479d839a720f32b99fdc87f455

Modified Files
--------------
src/backend/lib/dshash.c | 9 +++++++++
1 file changed, 9 insertions(+)


--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: [COMMITTERS] pgsql: Fix crash restart bug introduced in 8356753c212.
Next
From: Andres Freund
Date:
Subject: [COMMITTERS] pgsql: Rearm statement_timeout after each executed query.