[NTOS:IO] Fix pool memory disclosure in IopQueueTargetDeviceEvent (#2966)

This commit is contained in:
Nguyen Trung Khanh
2020-07-04 20:41:18 +07:00
committed by GitHub
parent 50510538db
commit 37c63770d7

View File

@@ -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,