pgsql: Fix severe memory leaks in GSSAPI encryption support.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix severe memory leaks in GSSAPI encryption support.
Дата
Msg-id E1jW15P-0006Mn-B1@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix severe memory leaks in GSSAPI encryption support.

Both the backend and libpq leaked buffers containing encrypted data
to be transmitted, so that the process size would grow roughly as
the total amount of data sent.

There were also far-less-critical leaks of the same sort in GSSAPI
session establishment.

Oversight in commit b0b39f72b, which I failed to notice while
reviewing the code in 2c0cdc818.

Per complaint from pmc@citylink.
Back-patch to v12 where this code was introduced.

Discussion: https://postgr.es/m/20200504115649.GA77072@gate.oper.dinoex.org

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/987717d7c7007055ff7fc2ecf3d40e9bdb00e071

Modified Files
--------------
src/backend/libpq/be-secure-gssapi.c    | 7 +++++++
src/interfaces/libpq/fe-secure-gssapi.c | 9 +++++++++
2 files changed, 16 insertions(+)


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: doc: normalize contributor names in PG 13 release notes
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: doc: PG 13 retnote adjustments