aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/trigger.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:09:16 +0200
commit1f53d0b9f45521a85e85b6dcab7c15a7d8b4b973 (patch)
treeff8928173520722cfc2b9477f1b398751e84c000 /src/backend/commands/trigger.c
parent0a1377760bcdfe837ea5f602a800ea97c668bf16 (diff)
downloadpostgresql-1f53d0b9f45521a85e85b6dcab7c15a7d8b4b973.tar.gz
postgresql-1f53d0b9f45521a85e85b6dcab7c15a7d8b4b973.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/commands/trigger.c')
0 files changed, 0 insertions, 0 deletions