https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2f1fab41fadffed7c69c9…
commit 2f1fab41fadffed7c69c953476667ecd3b8d84ca
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Wed Apr 17 10:31:34 2019 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun May 5 10:39:26 2019 +0200
[NTOS:CM] Reduce the size of some unnecessarily large stack buffers. CORE-15882
---
ntoskrnl/config/cmsysini.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/config/cmsysini.c b/ntoskrnl/config/cmsysini.c
index c773f1f569..6f9414bde6 100644
--- a/ntoskrnl/config/cmsysini.c
+++ b/ntoskrnl/config/cmsysini.c
@@ -1191,7 +1191,7 @@ VOID
NTAPI
CmpLoadHiveThread(IN PVOID StartContext)
{
- WCHAR FileBuffer[MAX_PATH], RegBuffer[MAX_PATH];
+ WCHAR FileBuffer[64], RegBuffer[64];
PCWSTR ConfigPath;
UNICODE_STRING TempName, FileName, RegName;
ULONG i, ErrorResponse, WorkerCount, Length;
@@ -1357,7 +1357,7 @@ VOID
NTAPI
CmpInitializeHiveList(VOID)
{
- WCHAR FileBuffer[MAX_PATH], RegBuffer[MAX_PATH];
+ WCHAR FileBuffer[64], RegBuffer[64];
PCWSTR ConfigPath;
UNICODE_STRING TempName, FileName, RegName;
HANDLE Thread;