| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Zero-fill private_data when attaching an injection point |
| Date: | 2026-04-10 02:17:46 |
| Message-ID: | E1wB1RK-000EKb-0X@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Zero-fill private_data when attaching an injection point
InjectionPointAttach() did not initialize the private_data buffer of the
shared memory entry before (perhaps partially) overwriting it. When the
private data is set to NULL by the caler, the buffer was left
uninitialized. If set, it could have stale contents.
The buffer is initialized to zero, so as the contents recorded when a
point is attached are deterministic.
Author: Sami Imseih <samimseih(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAA5RZ0tsGHu2h6YLnVu4HiK05q+gTE_9WVUAqihW2LSscAYS-g@mail.gmail.com
Backpatch-through: 17
Branch
------
REL_18_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/35f41b29ff1dedf172552adb1a7fab124518eadc
Modified Files
--------------
src/backend/utils/misc/injection_point.c | 1 +
1 file changed, 1 insertion(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeff Davis | 2026-04-10 03:32:20 | pgsql: Document new catalog columns, missed in commit 8185bb5347. |
| Previous Message | Michael Paquier | 2026-04-09 22:59:11 | pgsql: Enhance make_ctags and make_etags. |