https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2450dec4270df951e8031632248aceb101065419

commit 2450dec4270df951e8031632248aceb101065419
Author:     Mark Jansen <[email protected]>
AuthorDate: Sat Apr 27 23:58:01 2019 +0200
Commit:     Mark Jansen <[email protected]>
CommitDate: Tue Apr 30 18:57:43 2019 +0200

    [NTOS/MM] Ensure ImageBase is not used uninitialized
---
 ntoskrnl/mm/section.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/mm/section.c b/ntoskrnl/mm/section.c
index 335ab054d84..56ffab8a2ad 100644
--- a/ntoskrnl/mm/section.c
+++ b/ntoskrnl/mm/section.c
@@ -197,7 +197,7 @@ NTSTATUS NTAPI PeFmtCreateSection(IN CONST VOID * 
FileHeader,
     ULONG cbHeadersSize = 0;
     ULONG nSectionAlignment;
     ULONG nFileAlignment;
-    ULONG_PTR ImageBase;
+    ULONG_PTR ImageBase = 0;
     const IMAGE_DOS_HEADER * pidhDosHeader;
     const IMAGE_NT_HEADERS32 * pinhNtHeader;
     const IMAGE_OPTIONAL_HEADER32 * piohOptHeader;

Reply via email to