https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8dc4ac369279672c6784b…
commit 8dc4ac369279672c6784b7a77396b6a8283414df
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sun Feb 4 21:46:08 2018 +0100
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sun Feb 4 21:46:08 2018 +0100
[NTOSKRNL] Add an assert against VACB reference count overflow.
Very likely to be hit...
CORE-14285
---
ntoskrnl/cc/view.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ntoskrnl/cc/view.c b/ntoskrnl/cc/view.c
index f66f230c2d..2e570a1ead 100644
--- a/ntoskrnl/cc/view.c
+++ b/ntoskrnl/cc/view.c
@@ -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)