summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut2017-06-24 13:39:24 +0000
committerPeter Eisentraut2017-07-02 03:08:37 +0000
commitd8b3c81335600ad3487ca9bd642ef354d62919dc (patch)
tree6229778411a8570c589425d6144575f2dc6fd94e /doc/src
parentb0f069d931f0a3d4a39aeeb230baf2f2b18cb3c3 (diff)
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 'doc/src')
0 files changed, 0 insertions, 0 deletions