[COMMITTERS] pgsql: Refine memory allocation in ICU conversions

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема [COMMITTERS] pgsql: Refine memory allocation in ICU conversions
Дата
Msg-id E1dRVFy-0000QY-6m@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Refine memory allocation in ICU conversions

The simple calculations done to estimate the size of the output buffers
for ucnv_fromUChars() and ucnv_toUChars() could overflow int32_t for
large strings.  To avoid that, go the long way and run the function
first without an output buffer to get the correct output buffer size
requirement.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d8b3c81335600ad3487ca9bd642ef354d62919dc

Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: [COMMITTERS] pgsql: Clean up misuse and nonuse of poll_query_until().
Следующее
От: Peter Eisentraut
Дата:
Сообщение: [COMMITTERS] pgsql: doc: Document that logical replication supports synchronousrepl