From 85e9a1fa72cb735a59448dfa060e3f1dd0ffdd20 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Wed, 28 Sep 2005 19:56:05 +0000 Subject: [PATCH] don't free random pointer in MmCreateImageSection. should fix bug 836 svn path=/trunk/; revision=18140 --- reactos/ntoskrnl/mm/section.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index 5395c47975c..d0eec8fc8c7 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -3230,6 +3230,8 @@ MmCreateImageSection(PSECTION_OBJECT *SectionObject, ObDereferenceObject(Section); return(STATUS_NO_MEMORY); } + + RtlZeroMemory(ImageSectionObject, sizeof(MM_IMAGE_SECTION_OBJECT)); StatusExeFmt = ExeFmtpCreateImageSection(FileHandle, ImageSectionObject);