projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NTOS/MM] Ensure ImageBase is not used uninitialized
[reactos.git]
/
ntoskrnl
/
mm
/
section.c
diff --git
a/ntoskrnl/mm/section.c
b/ntoskrnl/mm/section.c
index
335ab05
..
56ffab8
100644
(file)
--- 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;