pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix severe memory leaks in GSSAPI encryption support.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix severe memory leaks in GSSAPI encryption support.
@ 2020-05-05 17:10 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2020-05-05 17:10 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
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(+)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Fix severe memory leaks in GSSAPI encryption support.
@ 2020-05-05 17:10 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2020-05-05 17:10 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(+)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-05-05 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 17:10 pgsql: Fix severe memory leaks in GSSAPI encryption support. Tom Lane <tgl@sss.pgh.pa.us>
2020-05-05 17:10 pgsql: Fix severe memory leaks in GSSAPI encryption support. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox