aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/tqueue.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-06-24 09:39:24 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-07-01 23:08:37 -0400
commitd8b3c81335600ad3487ca9bd642ef354d62919dc (patch)
tree6229778411a8570c589425d6144575f2dc6fd94e /src/backend/executor/tqueue.c
parentb0f069d931f0a3d4a39aeeb230baf2f2b18cb3c3 (diff)
downloadpostgresql-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/tqueue.c')
0 files changed, 0 insertions, 0 deletions