From 22f4acf925d30e2c96ca6e3037aff0b3bce37d43 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 27 Nov 2016 10:27:43 +0000 Subject: [PATCH] [NTOSKRNL] Don't write random byte. Force a value so that it can be easily recognized. CORE-11819 CORE-12475 svn path=/trunk/; revision=73391 --- reactos/ntoskrnl/mm/section.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index 80f193ba2e4..1bfcfb4f53e 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -5086,6 +5086,7 @@ MmCreateSection (OUT PVOID * Section, if (Status == STATUS_END_OF_FILE && !(AllocationAttributes & SEC_IMAGE) && FileObject != NULL && (FileObject->SectionObjectPointer == NULL || FileObject->SectionObjectPointer->SharedCacheMap == NULL)) { + Buffer = 0xdb; Status = ZwWriteFile(FileHandle, NULL, NULL,