summaryrefslogtreecommitdiff
path: root/contrib/pageinspect/gistfuncs.c
diff options
context:
space:
mode:
authorJeff Davis2023-05-17 20:43:41 +0000
committerJeff Davis2023-05-17 21:18:45 +0000
commit1c634f6647c28354258d114041252475325aea32 (patch)
tree70dd674a1b46de4925248933f4b8ceec661e991e /contrib/pageinspect/gistfuncs.c
parent6de31ce446e59a1f947c7ebe4e4bbe7ca2b842bc (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/2098874d-c111-41e4-9063-30bcf135226b@gmail.com
Diffstat (limited to 'contrib/pageinspect/gistfuncs.c')
0 files changed, 0 insertions, 0 deletions