pgsql: Fix harmless access to uninitialized memory.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix harmless access to uninitialized memory.
Date: 2014-05-13 16:19:58
Message-ID: E1WkFQs-0003K1-UR@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2014-05-13 19:13:37 pgsql: docs: 9.4 release notes adjustments
Previous Message Heikki Linnakangas 2014-05-13 12:32:06 pgsql: Initialize padding bytes in btree_gist varbit support.