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

From Tom Lane
Subject Re: Small patch to improve safety of utf8_to_unicode().
Date
Msg-id 3590905.1784154323@sss.pgh.pa.us
Whole thread
In response to Re: Small patch to improve safety of utf8_to_unicode().  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Small patch to improve safety of utf8_to_unicode().
List pgsql-hackers
Jeff Davis <pgsql@j-davis.com> writes:
> On Mon, 2026-07-13 at 20:26 -0700, Jeff Davis wrote:
>> Attached a patch. I added some perl code to check that the expansion
>> factor of the UTF8 representation doesn't exceed 3, and added a
>> static assert in the C code to compare to MaxAllocSize.

> I plan to commit this soon. Only to master, unless you'd like me to
> backport to silence some coverity warnings.

Master seems sufficient.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Zsolt Parragi
Date:
Subject: Re: pg_hosts: Add pg_hosts_file_rules()
Next
From: Shinya Kato
Date:
Subject: Re: doc: REPACK is missing from the MAINTAIN privilege documentation