Skip to content
Permalink
Browse files

[NTOS:PNP] Reduce the size of the pool buffer in IopGetParentIdPrefix…

…. CORE-15882
  • Loading branch information...
ThFabba committed Apr 18, 2019
1 parent 2f1fab4 commit 5706f6e9f4b237ada8098938ca2d4580f28d458a
Showing with 1 addition and 1 deletion.
  1. +1 −1 ntoskrnl/io/pnpmgr/pnpmgr.c
@@ -1853,7 +1853,7 @@ IopGetParentIdPrefix(PDEVICE_NODE DeviceNode,
}

/* 1. Try to retrieve ParentIdPrefix from registry */
KeyNameBufferLength = FIELD_OFFSET(KEY_VALUE_PARTIAL_INFORMATION, Data[0]) + MAX_PATH * sizeof(WCHAR);
KeyNameBufferLength = FIELD_OFFSET(KEY_VALUE_PARTIAL_INFORMATION, Data) + sizeof(L"12345678&12345678");
ParentIdPrefixInformation = ExAllocatePoolWithTag(PagedPool,
KeyNameBufferLength + sizeof(UNICODE_NULL),
TAG_IO);

0 comments on commit 5706f6e

Please sign in to comment.
You can’t perform that action at this time.