forked from KolibriOS/kolibrios
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:
parent
a18d802064
commit
2508f1e16e
@ -128,6 +128,10 @@ dd .setSkinUnicode
|
||||
cmp edx, 192
|
||||
jnae @f
|
||||
mov edx, 192 ; max size
|
||||
@@:
|
||||
stdcall is_region_userspace, esi, edx ;
|
||||
jnz @f ;
|
||||
ret ;
|
||||
@@:
|
||||
mov edi, common_colours
|
||||
mov ecx, edx
|
||||
|
Loading…
Reference in New Issue
Block a user