[KERNEL32] Fix MultiByteToWideChar(CP_UTF8, ...) (#2007)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sat, 2 Nov 2019 05:16:26 +0000 (14:16 +0900)
committerGitHub <noreply@github.com>
Sat, 2 Nov 2019 05:16:26 +0000 (14:16 +0900)
commita63678c9a94e704db6dbca9316731817e56e0e45
treebfb1db951c3e06f164b30f68959ae592dbbb8121
parentbe731acfdeb94f75287eaa691d63d40e610a927c
[KERNEL32] Fix MultiByteToWideChar(CP_UTF8, ...) (#2007)

CP_UTF8 validation was not strict. 5- or 6-byte length sequences are invalid in RFC 3629 UTF-8. CORE-16468

- Fix MultiByteToWideChar(CP_UTF8, ...) by making check strict.
dll/win32/kernel32/winnls/string/nls.c