pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix severe memory leaks in GSSAPI encryption support.
Date: Tue, 05 May 2020 17:10:27 +0000
Message-ID: <E1jW15P-0006Mn-B1@gemulon.postgresql.org> (raw)

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



view thread (2+ messages)

Message-ID: <E1jW15P-0006Mn-B1@gemulon.postgresql.org>
Permalink:  ../E1jW15P-0006Mn-B1@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jW15P-0006Mn-B1@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix severe memory leaks in GSSAPI encryption support.
  In-Reply-To: <E1jW15P-0006Mn-B1@gemulon.postgresql.org>
  References: <E1jW15P-0006Mn-B1@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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