projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
329de9f
)
Pass sensible value to memset() when randomizing reorderbuffer's tuple slab.
author
Heikki Linnakangas
Mon, 5 May 2014 13:21:46 +0000
(16:21 +0300)
committer
Heikki Linnakangas
Mon, 5 May 2014 13:22:15 +0000
(16:22 +0300)
This is entirely harmless, but still wrong. Noticed by coverity.
Andres Freund
src/backend/replication/logical/reorderbuffer.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/replication/logical/reorderbuffer.c
b/src/backend/replication/logical/reorderbuffer.c
index e0e9e5c5b89f2441b7101fde93b1763691b92c7e..a2b2adb173260aeddb8bb6ad4f5dc4b2a3582715 100644
(file)
--- 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, 0x
deadbeef
, sizeof(ReorderBufferTupleBuf));
+ memset(tuple, 0x
a9
, sizeof(ReorderBufferTupleBuf));
#endif
}
else