[NTOSKRNL] Properly reset VACB on free

CID 1434271
This commit is contained in:
Pierre Schweitzer 2018-04-14 11:13:12 +02:00
parent 953dc72dad
commit fd3a6c1089

View file

@ -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;
}