mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 21:56:06 +00:00
[IMM32] Don't allow invalid 'IME File' values
Improve security. CORE-11700
This commit is contained in:
parent
87f2950e1a
commit
db00a75227
1 changed files with 2 additions and 1 deletions
|
@ -908,7 +908,8 @@ UINT APIENTRY Imm32GetImeLayout(PREG_IME pLayouts, UINT cLayouts)
|
|||
|
||||
RegCloseKey(hkeyIME);
|
||||
|
||||
if (!szImeFileName[0])
|
||||
/* We don't allow the invalid "IME File" values for security reason */
|
||||
if (!szImeFileName[0] || wcschr(szImeFileName, L'\\') != NULL)
|
||||
break;
|
||||
|
||||
Imm32StrToUInt(szImeKey, &Value, 16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue