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:
Doczom 2021-05-09 13:27:00 +00:00
parent 2508f1e16e
commit da3163d11b

View File

@ -1409,6 +1409,19 @@ sys_outport:
ret
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
mov eax, ebx
mov ebx, ecx