summaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.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:50:43 +0200
commit6e03a8a304a2f31ffafb5f229794747c01af6936 (patch)
tree56fc10ed46aebe02d57d4bd76aa63058b5180eee /src/backend/commands/tablecmds.c
parent5a9f99bed8cbd4a2aafaedbf464eedf9ae9e73a8 (diff)
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/commands/tablecmds.c')
0 files changed, 0 insertions, 0 deletions