mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 01:42:30 +00:00
Properly handle access violation copying from userland.
svn path=/trunk/; revision=30368
This commit is contained in:
parent
9bcd750116
commit
1b2108aee2
|
@ -559,6 +559,11 @@ AfdPacketSocketReadData(PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
|||
RecvReq->AddressLength,
|
||||
TRUE, TRUE );
|
||||
|
||||
if( !RecvReq->BufferArray ) { /* access violation in userspace */
|
||||
return UnlockAndMaybeComplete
|
||||
( FCB, STATUS_ACCESS_VIOLATION, Irp, 0, NULL, FALSE );
|
||||
}
|
||||
|
||||
if( !IsListEmpty( &FCB->DatagramList ) ) {
|
||||
ListEntry = RemoveHeadList( &FCB->DatagramList );
|
||||
DatagramRecv = CONTAINING_RECORD
|
||||
|
|
Loading…
Reference in a new issue