mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[USER32] Avoid szImeFileName buffer overrun
CORE-11700
This commit is contained in:
parent
b4575eccd7
commit
75116d6b87
1 changed files with 1 additions and 0 deletions
|
@ -800,6 +800,7 @@ IntLoadKeyboardLayout(
|
|||
else
|
||||
{
|
||||
WCHAR szPath[MAX_PATH];
|
||||
szImeFileName[_countof(szImeFileName) - 1] = UNICODE_NULL;
|
||||
GetSystemLibraryPath(szPath, _countof(szPath), szImeFileName);
|
||||
|
||||
/* We don't allow the invalid "IME File" values for security reason */
|
||||
|
|
Loading…
Reference in a new issue