forked from KolibriOS/kolibrios
fixed vulnerability (reading kernel memory from userspace) in sysfn 54.2
git-svn-id: svn://kolibrios.org@8711 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
afb2bbacd5
commit
a18d802064
@ -49,6 +49,15 @@ align 4
|
|||||||
.2:
|
.2:
|
||||||
dec ebx ; 2 - Write the data to the clipboard
|
dec ebx ; 2 - Write the data to the clipboard
|
||||||
jnz .3
|
jnz .3
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
stdcall is_region_userspace, edx, ecx
|
||||||
|
jnz @f
|
||||||
|
mov eax, -1
|
||||||
|
jmp .exit_1
|
||||||
|
@@:
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
; check the lock
|
; check the lock
|
||||||
mov ebx, clipboard_write_lock
|
mov ebx, clipboard_write_lock
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
|
Loading…
Reference in New Issue
Block a user