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

commit fd3a6c1089f8eb315bf1ab1dea85b44894938a05
Author:     Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Sat Apr 14 11:13:12 2018 +0200
Commit:     Pierre Schweitzer <pie...@reactos.org>
CommitDate: Sun Apr 15 22:52:53 2018 +0200

    [NTOSKRNL] Properly reset VACB on free
    
    CID 1434271
---
 ntoskrnl/cc/view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index 11062095f5..bd2f4887d4 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -978,7 +978,7 @@ CcRosInternalFreeVacb (
     ASSERT(IsListEmpty(&Vacb->CacheMapVacbListEntry));
     ASSERT(IsListEmpty(&Vacb->DirtyVacbListEntry));
     ASSERT(IsListEmpty(&Vacb->VacbLruListEntry));
-    RtlFillMemory(Vacb, sizeof(Vacb), 0xfd);
+    RtlFillMemory(Vacb, sizeof(*Vacb), 0xfd);
     ExFreeToNPagedLookasideList(&VacbLookasideList, Vacb);
     return STATUS_SUCCESS;
 }

Reply via email to