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 <[email protected]> Discussion: https://postgr.es/m/caa5rz0tsghu2h6ylnvu4hik05q+gte_9wvuaqihw2lsscay...@mail.gmail.com Backpatch-through: 17 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5b5bf51e435304b2043db46b65455747de2af1f5 Modified Files -------------- src/backend/utils/misc/injection_point.c | 1 + 1 file changed, 1 insertion(+)
