mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 03:43:36 +00:00
[NTOS:IO] Fix pool memory disclosure in IopQueueTargetDeviceEvent (#2966)
This commit is contained in:
@@ -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