pgsql: Avoid invalid alloc size error in shm_mq

2020-10-20 Thread Peter Eisentraut
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 Ma

pgsql: Avoid invalid alloc size error in shm_mq

2020-10-20 Thread Peter Eisentraut
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 Ma

pgsql: Avoid invalid alloc size error in shm_mq

2020-10-20 Thread Peter Eisentraut
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 Ma

pgsql: Avoid invalid alloc size error in shm_mq

2020-10-20 Thread Peter Eisentraut
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 Ma

pgsql: Avoid invalid alloc size error in shm_mq

2020-10-20 Thread Peter Eisentraut
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 Ma

pgsql: Avoid invalid alloc size error in shm_mq

2020-10-20 Thread Peter Eisentraut
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 Ma

pgsql: Avoid invalid alloc size error in shm_mq

2020-10-19 Thread Peter Eisentraut
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 Ma