Fix harmless access to uninitialized memory.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: f35aef415aa755c4e99f8c0ef83f9d14dbc48bb4
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-05-13T16:18:28Z
Releases: 9.4.0
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

Files

PathChange+/−
src/backend/utils/adt/ri_triggers.c modified +2 −1