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:29
Message-ID: E1whCWr-0002nu-01@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
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5e78ebca57b3630c1230d348263fddfeaaf7678e

Modified Files
--------------
src/backend/utils/adt/formatting.c | 24 ++++++++++++++++++------
src/common/unicode/case_test.c | 9 +++++++++
src/common/unicode_case.c | 33 +++++++++++++++++++++++++++++----
3 files changed, 56 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-07-07 21:32:15 pgsql: Deduplicate metapage sanity checks in _bt_gettrueroot()
Previous Message Jeff Davis 2026-07-07 20:36:24 pgsql: unicode_case.c: defend against truncated UTF8.