pgsql: Zero-fill private_data when attaching an injection point - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Zero-fill private_data when attaching an injection point
Date
Msg-id E1wB1RK-000EKd-0a@gemulon.postgresql.org
Whole thread Raw
List 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@gmail.com>
Discussion: https://postgr.es/m/CAA5RZ0tsGHu2h6YLnVu4HiK05q+gTE_9WVUAqihW2LSscAYS-g@mail.gmail.com
Backpatch-through: 17

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/492c386b4df465df8ebb9347e1579ad1b96bf41a

Modified Files
--------------
src/backend/utils/misc/injection_point.c | 1 +
1 file changed, 1 insertion(+)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Enhance make_ctags and make_etags.
Next
From: Jeff Davis
Date:
Subject: pgsql: Document new catalog columns, missed in commit 8185bb5347.