aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-10-19 08:52:25 +0200
committerPeter Eisentraut <peter@eisentraut.org>2020-10-20 14:31:52 +0200
commitbd0677bb8a54683b05b75fc242bd5c757ce5edd8 (patch)
tree8872deaea1f77a110123001cad7d8822ce193744 /src/backend/executor/nodeModifyTable.c
parentc6d0b9b1668cde5f13e632bad813bd9d666caf9b (diff)
downloadpostgresql-bd0677bb8a54683b05b75fc242bd5c757ce5edd8.tar.gz
postgresql-bd0677bb8a54683b05b75fc242bd5c757ce5edd8.zip
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
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions