Skip to content

Commit 37c6377

Browse files
authored
[NTOS:IO] Fix pool memory disclosure in IopQueueTargetDeviceEvent (reactos#2966)
1 parent 5051053 commit 37c6377

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ntoskrnl/io/pnpmgr/plugplay.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ IopQueueTargetDeviceEvent(const GUID *Guid,
6464
TotalSize + FIELD_OFFSET(PNP_EVENT_ENTRY, Event));
6565
if (!EventEntry)
6666
return STATUS_INSUFFICIENT_RESOURCES;
67+
RtlZeroMemory(EventEntry, TotalSize + FIELD_OFFSET(PNP_EVENT_ENTRY, Event));
6768

6869
/* Fill the buffer with the event GUID */
6970
RtlCopyMemory(&EventEntry->Event.EventGuid,

0 commit comments

Comments
 (0)