From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix memory leak with lower, upper and initcap with ICU-provided |
Date: | 2019-09-03 03:32:39 |
Message-ID: | E1i4zYd-0002kg-7F@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/3a54eb1a383411765deb66e6081568ae6f8d9132
Modified Files
--------------
src/backend/utils/adt/formatting.c | 3 +++
1 file changed, 3 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2019-09-03 04:07:00 | pgsql: Doc: Replace mention to "K bytes" by "kilobytes" in textsearch.s |
Previous Message | Tom Lane | 2019-09-02 20:10:49 | pgsql: Avoid touching replica identity index in ExtractReplicaIdentity( |