forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf3412a6
committed
Avoid 0-length memcpy to NULL with EXEC_BACKEND
memcpy(NULL, src, 0) is forbidden by POSIX, even though everyproduction 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.com1 parenta06e8f8 commitf3412a6
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
762 | 762 |
| |
763 | 763 |
| |
764 | 764 |
| |
765 |
| - | |
| 765 | + | |
| 766 | + | |
766 | 767 |
| |
767 | 768 |
| |
768 | 769 |
| |
|
0 commit comments
Comments
(0)