diff options
author | Robert Haas <rhaas@postgresql.org> | 2014-07-24 09:19:50 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2014-07-24 09:23:22 -0400 |
commit | 1144ea3421e4bcc24dd7402a1f21ba94638d591b (patch) | |
tree | 281071fc0b18d824cce2ec0828fbdebd9bdc6ae0 /src/backend/access/gist/gistproc.c | |
parent | 250c26ba9cf247c2d5b8dbd2435a36d11382c43e (diff) | |
download | postgresql-1144ea3421e4bcc24dd7402a1f21ba94638d591b.tar.gz postgresql-1144ea3421e4bcc24dd7402a1f21ba94638d591b.zip |
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/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions