Re: BUG #17277: write past chunk when calling normalize() on an empty string

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: postgresql@zr40.nl, pgsql-bugs@lists.postgresql.org
Date: 2021-11-12T12:52:23Z
Lists: pgsql-bugs
On Wed, Nov 10, 2021 at 03:33:29PM +0900, Michael Paquier wrote:
> That feels more natural this way.  Still, I can see some perl modules
> that would return false for such a case, by the way.  The
> normalization docs don't seem to mention that directly, except for the
> stream-safe text format: 
> https://www.unicode.org/faq/normalization.html
> https://unicode.org/reports/tr15/tr15-51.html

I have expanded the tests, and fixed this one as of 098c1345.  Thanks
for the report, Matthijs!
--
Michael

Commits

  1. Fix buffer overrun in unicode string normalization with empty input