https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6fdff1f97053ec6b8d469…
commit 6fdff1f97053ec6b8d4697ae0219d644ed1f69f3
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Sun Mar 24 10:44:46 2019 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun May 5 10:38:10 2019 +0200
[NTOS:KDBG] Avoid use of MAX_PATH. CORE-15882
---
ntoskrnl/ex/handle.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/ex/handle.c b/ntoskrnl/ex/handle.c
index 1851d56b09..061e51b888 100644
--- a/ntoskrnl/ex/handle.c
+++ b/ntoskrnl/ex/handle.c
@@ -1292,7 +1292,7 @@ BOOLEAN ExpKdbgExtHandle(ULONG Argc, PCHAR Argv[])
EXHANDLE ExHandle;
PLIST_ENTRY Entry;
PEPROCESS Process;
- WCHAR KeyPath[MAX_PATH];
+ WCHAR KeyPath[256];
PFILE_OBJECT FileObject;
PHANDLE_TABLE HandleTable;
POBJECT_HEADER ObjectHeader;
@@ -1418,7 +1418,7 @@ BOOLEAN ExpKdbgExtHandle(ULONG Argc, PCHAR Argv[])
CurrentKcb = CurrentKcb->ParentKcb;
}
- if (NeededLength < MAX_PATH * sizeof(WCHAR))
+ if (NeededLength < sizeof(KeyPath))
{
CurrentKcb = Kcb;