diff options
author | Jeff Davis <jdavis@postgresql.org> | 2023-05-17 13:43:41 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2023-05-17 14:18:45 -0700 |
commit | 1c634f6647c28354258d114041252475325aea32 (patch) | |
tree | 70dd674a1b46de4925248933f4b8ceec661e991e /src/include/optimizer/geqo.h | |
parent | 6de31ce446e59a1f947c7ebe4e4bbe7ca2b842bc (diff) | |
download | postgresql-master.tar.gz |
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 'src/include/optimizer/geqo.h')
0 files changed, 0 insertions, 0 deletions