projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19fc20f
)
[NTOSKRNL] Add an assert against VACB reference count overflow.
author
Pierre Schweitzer
<pierre@reactos.org>
Sun, 4 Feb 2018 20:46:08 +0000
(21:46 +0100)
committer
Pierre 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
patch
|
blob
|
history
diff --git
a/ntoskrnl/cc/view.c
b/ntoskrnl/cc/view.c
index
f66f230
..
2e570a1
100644
(file)
--- 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)