pgsql: Fix harmless access to uninitialized memory. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix harmless access to uninitialized memory.
Date
Msg-id E1WkFQs-0003K1-UR@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix harmless access to uninitialized memory.

When cache invalidations arrive while ri_LoadConstraintInfo() is busy
filling a new cache entry, InvalidateConstraintCacheCallBack() compares
the - not yet initialized - oidHashValue field with the to-be-invalidated
hash value. To fix, check whether the entry is already marked as invalid.

Andres Freund

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f35aef415aa755c4e99f8c0ef83f9d14dbc48bb4

Modified Files
--------------
src/backend/utils/adt/ri_triggers.c |    3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Initialize padding bytes in btree_gist varbit support.
Next
From: Bruce Momjian
Date:
Subject: pgsql: docs: 9.4 release notes adjustments