• 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
.github Loading commit data...
android Loading commit data...
build Loading commit data...
doc Loading commit data...
python/build Loading commit data...
src Loading commit data...
systemd Loading commit data...
test Loading commit data...
win32 Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...