fixed vulnerability (reading kernel memory from userspace) in sysfn 48.2

git-svn-id: svn://kolibrios.org@8712 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Doczom 2021-05-09 12:50:44 +00:00
parent a18d802064
commit 2508f1e16e

View File

@ -128,6 +128,10 @@ dd .setSkinUnicode
cmp edx, 192 cmp edx, 192
jnae @f jnae @f
mov edx, 192 ; max size mov edx, 192 ; max size
@@:
stdcall is_region_userspace, esi, edx ;
jnz @f ;
ret ;
@@: @@:
mov edi, common_colours mov edi, common_colours
mov ecx, edx mov ecx, edx