[NTOSKRNL] Add an assert against VACB reference count overflow.
authorPierre Schweitzer <pierre@reactos.org>
Sun, 4 Feb 2018 20:46:08 +0000 (21:46 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 4 Feb 2018 20:46:08 +0000 (21:46 +0100)
Very likely to be hit...

CORE-14285

ntoskrnl/cc/view.c

index f66f230..2e570a1 100644 (file)
@@ -94,6 +94,7 @@ static void CcRosVacbIncRefCount_(PROS_VACB vacb, const char* file, int line)
 }
 static void CcRosVacbDecRefCount_(PROS_VACB vacb, const char* file, int line)
 {
+    ASSERT(vacb->ReferenceCount != 0);
     --vacb->ReferenceCount;
     ASSERT(!(vacb->ReferenceCount == 0 && vacb->Dirty));
     if (vacb->SharedCacheMap->Trace)