aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-07-03 15:58:14 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-07-03 15:58:14 +0300
commitf3412a61f3f92d795ce0c8bb715831ec02124bfb (patch)
tree423c045bdcbc027d3325b2605b4d6d8457c195f6 /src/backend/executor
parenta06e8f84a1ac1158ca7d7a95d9df289fe5219502 (diff)
downloadpostgresql-f3412a61f3f92d795ce0c8bb715831ec02124bfb.tar.gz
postgresql-f3412a61f3f92d795ce0c8bb715831ec02124bfb.zip
Avoid 0-length memcpy to NULL with EXEC_BACKEND
memcpy(NULL, src, 0) is forbidden by POSIX, even though every production version of libc allows it. Let's be tidy. Per report from Thomas Munro, running UBSan with EXEC_BACKEND. Backpatch to v17, where this code was added. Discussion: https://www.postgresql.org/message-id/CA%2BhUKG%2Be-dV7YWBzfBZXsgovgRuX5VmvmOT%2Bv0aXiZJ-EKbXcw@mail.gmail.com
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions