summaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-07-24 09:19:50 -0400
committerRobert Haas <rhaas@postgresql.org>2014-07-24 09:19:50 -0400
commitdf58a17df29f7ec0ffc8389deee46e81a2a58a60 (patch)
treec0ad765034840147d8829567926a5eba4199c7b5 /src/backend/access/transam/xlog.c
parent3372f1adad12bc70321fdf22f3c11ac67e429f63 (diff)
Prevent shm_mq_send from reading uninitialized memory.
shm_mq_send_bytes didn't invariably initialize *bytes_written before returning, which would cause shm_mq_send to read from uninitialized memory and add the value it found there to mqh->mqh_partial_bytes. This could cause the next attempt to send a message via the queue to fail an assertion (if the queue was detached) or copy data from a garbage pointer value into the queue (if non-blocking mode was in use).
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions