• Peter Eisentraut's avatar
    Refine memory allocation in ICU conversions · d8b3c813
    Peter Eisentraut authored
    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.
    d8b3c813
pg_locale.c 50 KB