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-ekb...@mail.gmail.com Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/95219c020c3c8c59079f264386141065865a810e Modified Files -------------- src/backend/postmaster/launch_backend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)