pgsql: Fix severe memory leaks in GSSAPI encryption support.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix severe memory leaks in GSSAPI encryption support.
Date: 2020-05-05 17:10:27
Message-ID: E1jW15P-0006Mm-AX@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)citylink(dot)
Back-patch to v12 where this code was introduced.

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/46da7bf671c002659d48dad72d325167db8df84b

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

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2020-05-05 17:18:09 pgsql: doc: PG 13 retnote adjustments
Previous Message Bruce Momjian 2020-05-05 16:42:58 pgsql: doc: normalize contributor names in PG 13 release notes