Re: Small patch to improve safety of utf8_to_unicode(). - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Small patch to improve safety of utf8_to_unicode().
Date
Msg-id 227d0c0c6c7a23c297033df01ad010cbeea5fb09.camel@j-davis.com
Whole thread
In response to Re: Small patch to improve safety of utf8_to_unicode().  (Chao Li <li.evan.chao@gmail.com>)
List pgsql-hackers
On Fri, 2026-06-26 at 12:38 +0800, Chao Li wrote:
> Sounds like 0001 will be back patched. In that case, the commit
> message "defend against invalid UTF8” seems too broad. Does it make
> sense to add some brief description about the defend behavior to the
> function header comment and the commit message?

Right. Would "defend against truncated byte sequences" or "defend
against truncated UTF8" be better wording?

Regards,
    Jeff Davis




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Move FOR PORTION OF checks out of analysis
Next
From: Tatsuya Kawata
Date:
Subject: Re: [PATCH] doc: clarify pg_stat_lock.fastpath_exceeded scope