pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix memory leak with lower, upper and initcap with ICU-provided
Date: Tue, 03 Sep 2019 03:32:39 +0000
Message-ID: <E1i4zYd-0002kl-7K@gemulon.postgresql.org> (raw)

Fix memory leak with lower, upper and initcap with ICU-provided collations

The leak happens in str_tolower, str_toupper and str_initcap, which are
used in several places including their equivalent SQL-level functions,
and can only be triggered when using an ICU-provided collation when
converting the input string.

b615920 fixed a similar leak.  Backpatch down 10 where ICU collations
have been introduced.

Author: Konstantin Knizhnik
Discussion: https://postgr.es/m/94c0ad0a-cbc2-e4a3-7829-2bdeaf9146db@postgrespro.ru
Backpatch-through: 10

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/604d20679e20c72a36ba267e67bec356a79d8448

Modified Files
--------------
src/backend/utils/adt/formatting.c | 3 +++
1 file changed, 3 insertions(+)



view thread (4+ messages)  latest in thread

Message-ID: <E1i4zYd-0002kl-7K@gemulon.postgresql.org>
Permalink:  ../E1i4zYd-0002kl-7K@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1i4zYd-0002kl-7K@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: michael@paquier.xyz
  Subject: Re: pgsql: Fix memory leak with lower, upper and initcap with ICU-provided
  In-Reply-To: <E1i4zYd-0002kl-7K@gemulon.postgresql.org>
  References: <E1i4zYd-0002kl-7K@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