pgsql: Fix overrun when comparing with unterminated ICU language string

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix overrun when comparing with unterminated ICU language string
Date: 2026-04-13 18:34:43
Message-ID: E1wCM7P-000p9Y-06@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix overrun when comparing with unterminated ICU language string.

The overrun was introduced in commit c4ff35f10.

Author: Andreas Karlsson <andreas(at)proxel(dot)se>
Reported-by: Alexander Lakhin <exclusion(at)gmail(dot)com>
Discussion: https://postgr.es/m/96d80a47-f17f-42fa-82b1-2908efbd6541@gmail.com
Backpatch-through: 18

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6393259bd49db307c7113d70da355544479ee342

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

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2026-04-13 21:08:20 Re: pgsql: Perform provider-specific initialization in new functions.
Previous Message Jeff Davis 2026-04-13 18:34:37 pgsql: Fix overrun when comparing with unterminated ICU language string