pgsql: Fix incorrect calculation in shm_mq_receive.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix incorrect calculation in shm_mq_receive.
Date: 2015-08-06 17:46:54
Message-ID: E1ZNPFm-0005Gy-29@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e72f2115ef6d574c64f42ea8b4cbe96accee08b2

Modified Files
--------------
src/backend/storage/ipc/shm_mq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2015-08-06 19:36:04 pgsql: Further fixes for degenerate outer join clauses.
Previous Message Robert Haas 2015-08-06 16:05:52 pgsql: Reduce ProcArrayLock contention by removing backends in batches.