pgsql: unicode_case.c: defend against truncated UTF8.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: unicode_case.c: defend against truncated UTF8.
Date: 2026-07-07 20:36:13
Message-ID: E1whCWb-0002m5-0d@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

unicode_case.c: defend against truncated UTF8.

Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Discussion: https://postgr.es/m/c355354e6c3f4a7aafb047361b73db247260fca0.camel@j-davis.com
Backpatch-through: 17

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/21ffc271d475a31dbc67706fc1f2a2c5bfc83e14

Modified Files
--------------
src/backend/utils/adt/pg_locale_builtin.c | 24 ++++++++++----
src/common/unicode/case_test.c | 8 +++++
src/common/unicode_case.c | 52 ++++++++++++++++++++++++++-----
3 files changed, 70 insertions(+), 14 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2026-07-07 20:36:20 pgsql: unicode_case.c: defend against truncated UTF8.
Previous Message Heikki Linnakangas 2026-07-07 19:40:07 pgsql: Cleanup comments/docs around the new shmem request callbacks