diff options
| author | Jeff Davis | 2023-05-17 20:43:41 +0000 |
|---|---|---|
| committer | Jeff Davis | 2023-05-17 21:18:45 +0000 |
| commit | 1c634f6647c28354258d114041252475325aea32 (patch) | |
| tree | 70dd674a1b46de4925248933f4b8ceec661e991e /src/backend/optimizer/util/orclauses.c | |
| parent | 6de31ce446e59a1f947c7ebe4e4bbe7ca2b842bc (diff) | |
ICU: check for U_STRING_NOT_TERMINATED_WARNING.
Fixes memory error in cases where the length of the language name
returned by uloc_getLanguage() is exactly ULOC_LANG_CAPACITY, in which
case the status is set to U_STRING_NOT_TERMINATED_WARNING.
Also check in call sites for other ICU functions that are expected to
return a C string to be safe (no bug is known at these other call
sites).
Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/optimizer/util/orclauses.c')
0 files changed, 0 insertions, 0 deletions
