1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-13 18:28:01 +03:00
Files
postgres/src/backend
Peter Eisentraut 6e03a8a304 Avoid invalid alloc size error in shm_mq
In shm_mq_receive(), a huge payload could trigger an unjustified
"invalid memory alloc request size" error due to the way the buffer
size is increased.

Add error checks (documenting the upper limit) and avoid the error by
limiting the allocation size to MaxAllocSize.

Author: Markus Wanner <markus.wanner@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/3bb363e7-ac04-0ac4-9fe8-db1148755bfa%402ndquadrant.com
2020-10-20 14:50:43 +02:00
..
2018-01-02 23:30:12 -05:00
2020-09-20 14:40:51 +02:00
2020-08-10 15:27:40 +02:00
2018-03-30 17:33:04 -07:00
2018-09-17 08:40:36 +02:00