aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2023-01-21 06:08:00 -0800
committerNoah Misch <noah@leadboat.com>2023-01-21 06:08:00 -0800
commite52daaabf8f1bf8096b0c105e2f719d9c68be3fa (patch)
tree1d52c85919c8056948442e9ea487d3760e1c31c2 /src/backend/utils/adt/arrayfuncs.c
parent03023a2664f8950ad522385ff75ce004bc932a7c (diff)
downloadpostgresql-e52daaabf8f1bf8096b0c105e2f719d9c68be3fa.tar.gz
postgresql-e52daaabf8f1bf8096b0c105e2f719d9c68be3fa.zip
Reject CancelRequestPacket having unexpected length.
When the length was too short, the server read outside the allocation. That yielded the same log noise as sending the correct length with (backendPID,cancelAuthCode) matching nothing. Change to a message about the unexpected length. Given the attacker's lack of control over the memory layout and the general lack of diversity in memory layouts at the code in question, we doubt a would-be attacker could cause a segfault. Hence, while the report arrived via security@postgresql.org, this is not a vulnerability. Back-patch to v11 (all supported versions). Andrey Borodin, reviewed by Tom Lane. Reported by Andrey Borodin.
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions