diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-06-24 09:39:24 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-07-01 23:08:37 -0400 |
commit | d8b3c81335600ad3487ca9bd642ef354d62919dc (patch) | |
tree | 6229778411a8570c589425d6144575f2dc6fd94e /src/backend/executor/nodeProjectSet.c | |
parent | b0f069d931f0a3d4a39aeeb230baf2f2b18cb3c3 (diff) | |
download | postgresql-d8b3c81335600ad3487ca9bd642ef354d62919dc.tar.gz postgresql-d8b3c81335600ad3487ca9bd642ef354d62919dc.zip |
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.
Diffstat (limited to 'src/backend/executor/nodeProjectSet.c')
0 files changed, 0 insertions, 0 deletions