unicode_case.c: defend against truncated UTF8.

Reviewed-by: Chao Li <[email protected]>
Discussion: 
https://postgr.es/m/[email protected]
Backpatch-through: 17

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9021c8f3cabc42839329e3ab0dfed4137557d19f

Modified Files
--------------
src/backend/utils/adt/pg_locale_builtin.c | 24 ++++++++++----
src/common/unicode/case_test.c            |  8 +++++
src/common/unicode_case.c                 | 55 ++++++++++++++++++++++++++-----
3 files changed, 72 insertions(+), 15 deletions(-)

Reply via email to