forked from KolibriOS/kolibrios
fixed vulnerability (reading kernel memory from userspace) in sysfn 47
git-svn-id: svn://kolibrios.org@8713 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2508f1e16e
commit
da3163d11b
@ -1409,6 +1409,19 @@ sys_outport:
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
display_number:
|
display_number:
|
||||||
|
; add check pointers
|
||||||
|
test bl, bl
|
||||||
|
jz @f
|
||||||
|
stdcall is_region_userspace, ecx, 1
|
||||||
|
jnz @f
|
||||||
|
ret
|
||||||
|
@@:
|
||||||
|
test esi, 0x08000000
|
||||||
|
jz @f
|
||||||
|
stdcall is_region_userspace, edi, 1
|
||||||
|
jnz @f
|
||||||
|
ret
|
||||||
|
@@:
|
||||||
;It is not optimization
|
;It is not optimization
|
||||||
mov eax, ebx
|
mov eax, ebx
|
||||||
mov ebx, ecx
|
mov ebx, ecx
|
||||||
|
Loading…
Reference in New Issue
Block a user