diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-05-05 16:21:46 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2014-05-05 16:22:15 +0300 |
commit | 377790fbd707b41bdf2264fe6c217e903e241f7c (patch) | |
tree | 802e55ac2658ac46d343786aca4b2f44e0a85bf6 /src | |
parent | 329de9fa983debc941ebd79f335f2574b72a3694 (diff) | |
download | postgresql-377790fbd707b41bdf2264fe6c217e903e241f7c.tar.gz postgresql-377790fbd707b41bdf2264fe6c217e903e241f7c.zip |
Pass sensible value to memset() when randomizing reorderbuffer's tuple slab.
This is entirely harmless, but still wrong. Noticed by coverity.
Andres Freund
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/replication/logical/reorderbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c index e0e9e5c5b89..a2b2adb1732 100644 --- a/src/backend/replication/logical/reorderbuffer.c +++ b/src/backend/replication/logical/reorderbuffer.c @@ -456,7 +456,7 @@ ReorderBufferGetTupleBuf(ReorderBuffer *rb) tuple = slist_container(ReorderBufferTupleBuf, node, slist_pop_head_node(&rb->cached_tuplebufs)); #ifdef USE_ASSERT_CHECKING - memset(tuple, 0xdeadbeef, sizeof(ReorderBufferTupleBuf)); + memset(tuple, 0xa9, sizeof(ReorderBufferTupleBuf)); #endif } else |