Fix incorrect calculation in shm_mq_receive.

Robert Haas <rhaas@postgresql.org>

Commit: e72f2115ef6d574c64f42ea8b4cbe96accee08b2
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-08-06T17:36:10Z
Releases: 9.4.5
Fix incorrect calculation in shm_mq_receive.

If some, but not all, of the length word has already been read, and the
next attempt to read sees exactly the number of bytes needed to complete
the length word, or fewer, then we'll incorrectly read less than all of
the available data.

Antonin Houska

Files

PathChange+/−
src/backend/storage/ipc/shm_mq.c modified +1 −1