> On Dec 16, 2025, at 04:23, Jeff Davis wrote:
>
> On Sun, 2025-12-14 at 07:22 +0800, Chao Li wrote:
>> This patch adds a length check to utf8_to_unicode(), I think which is
>> where “safety” comes from. Can you please add an a little bit more to
>> the commit message instead of only saying “i
On Sun, 2025-12-14 at 07:22 +0800, Chao Li wrote:
> This patch adds a length check to utf8_to_unicode(), I think which is
> where “safety” comes from. Can you please add an a little bit more to
> the commit message instead of only saying “improve safety”.
Right: it does not read past pg_mblen(), n
> On Dec 13, 2025, at 07:24, Jeff Davis wrote:
>
> Attached.
>
>
>
This patch adds a length check to utf8_to_unicode(), I think which is where
“safety” comes from. Can you please add an a little bit more to the commit
message instead of only saying “improve safety”. It also deleted two
Attached.
From 4777d1af75bc9e570e7db954b6642916fa1420bc Mon Sep 17 00:00:00 2001
From: Jeff Davis
Date: Thu, 4 Dec 2025 19:37:32 -0800
Subject: [PATCH v1] Make utf8_to_unicode() safer.
---
contrib/fuzzystrmatch/daitch_mokotoff.c | 3 ++-
src/backend/utils/adt/pg_locale_builtin.c | 5 +++--