summaryrefslogtreecommitdiff
path: root/src/tutorial
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 15:35:31 +0200
commitd4e654d15467d68c85e05eaaa49291de9f81b3ed (patch)
tree3d8566a2c3764c9c60b01306108f4d1951c57250 /src/tutorial
parent5c78f797701b90546279b994791fc07af5bbb5c9 (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/tutorial')
0 files changed, 0 insertions, 0 deletions