• Max Kellermann's avatar
    lib/icu/Win32: paranoid-ify the buffer length checks · 99afe8e6
    Max Kellermann authored
    Passing `length+1` to `MultiByteToWideChar()` means the function may
    fill the whole buffer with output data, and could theoretically
    overwrite the null terminator.  In practice, this will never happen,
    but this way, it's slightly more correct.
    
    Also, null-terminate after `MultiByteToWideChar()`, after we got the
    real output length.  Again, this would never have been a problem, but
    who knows...
    99afe8e6
Name
Last commit
Last update
..
CaseFold.cxx Loading commit data...
CaseFold.hxx Loading commit data...
Collate.cxx Loading commit data...
Collate.hxx Loading commit data...
Compare.cxx Loading commit data...
Compare.hxx Loading commit data...
Converter.cxx Loading commit data...
Converter.hxx Loading commit data...
Init.cxx Loading commit data...
Init.hxx Loading commit data...
Util.cxx Loading commit data...
Util.hxx Loading commit data...
Win32.cxx Loading commit data...
Win32.hxx Loading commit data...
meson.build Loading commit data...