mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[NTOS:IO] Fix pool memory disclosure in IopQueueTargetDeviceEvent (#2966)
This commit is contained in:
committed by
GitHub
parent
50510538db
commit
37c63770d7
@@ -64,6 +64,7 @@ IopQueueTargetDeviceEvent(const GUID *Guid,
|
||||
TotalSize + FIELD_OFFSET(PNP_EVENT_ENTRY, Event));
|
||||
if (!EventEntry)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
RtlZeroMemory(EventEntry, TotalSize + FIELD_OFFSET(PNP_EVENT_ENTRY, Event));
|
||||
|
||||
/* Fill the buffer with the event GUID */
|
||||
RtlCopyMemory(&EventEntry->Event.EventGuid,
|
||||
|
||||
Reference in New Issue
Block a user