Fix overrun when comparing with unterminated ICU language string.

Jeff Davis <jdavis@postgresql.org>

Commit: 6393259bd49db307c7113d70da355544479ee342
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2026-04-13T18:19:21Z
Releases: 18.4
Fix overrun when comparing with unterminated ICU language string.

The overrun was introduced in commit c4ff35f10.

Author: Andreas Karlsson <andreas@proxel.se>
Reported-by: Alexander Lakhin <exclusion@gmail.com>
Discussion: https://postgr.es/m/96d80a47-f17f-42fa-82b1-2908efbd6541@gmail.com
Backpatch-through: 18

Files

PathChange+/−
src/backend/utils/adt/pg_locale_icu.c modified +3 −3

Discussion