Author: pschweitzer
Date: Sun Nov 27 10:27:43 2016
New Revision: 73391
URL:
http://svn.reactos.org/svn/reactos?rev=73391&view=rev
Log:
[NTOSKRNL]
Don't write random byte. Force a value so that it can be easily recognized.
CORE-11819
CORE-12475
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Sun Nov 27 10:27:43 2016
@@ -5086,6 +5086,7 @@
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,