summaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeNestloop.c
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 16:20:56 +0300
commit95219c020c3c8c59079f264386141065865a810e (patch)
treee501e51c355a096989aea322190b72c34ffc34ff /src/backend/executor/nodeNestloop.c
parent1906b1e0ad96010f2ab07f96e36488e0dc058594 (diff)
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/nodeNestloop.c')
0 files changed, 0 insertions, 0 deletions