pg_dump: Fix dangling pointer in EndCompressorZstd()

Поиск
Список
Период
Сортировка
От Alexander Kuznetsov
Тема pg_dump: Fix dangling pointer in EndCompressorZstd()
Дата
Msg-id efaee52b-9550-44ca-8633-ea86076b3283@altlinux.org
обсуждение исходный текст
Ответы Re: pg_dump: Fix dangling pointer in EndCompressorZstd()
Список pgsql-hackers
Hello everyone,

We've found that EndCompressorZstd() doesn't set cs->private_data to NULL after pg_free(),
unlike other EndCompressor implementations.
While this doesn't currently cause issues (as the pointer soon gets reassigned),
we recommend fixing this to maintain consistency with other implementations and prevent potential future issues.

The patch is attached, would appreciate your thoughts on this change.

--
Best regards,
Alexander Kuznetsov

Вложения

В списке pgsql-hackers по дате отправления: