Author: pschweitzer
Date: Thu Aug 3 20:47:41 2017
New Revision: 75474
URL:
http://svn.reactos.org/svn/reactos?rev=75474&view=rev
Log:
[RDBSS]
Don't attempt to dereference NULL-ptr if CCB isn't set.
Fixes crash in RxFsdCommonDispatch() under rare circumstances.
CORE-11327
Modified:
trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c
Modified: trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/drivers/rdbsslib/r…
==============================================================================
--- trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c [iso-8859-1] Thu Aug 3 20:47:41 2017
@@ -5984,7 +5984,7 @@
Fobx = StackFileObject->FsContext2;
if (BooleanFlagOn(Fcb->FcbState, FCB_STATE_ORPHANED) ||
- BooleanFlagOn(Fobx->pSrvOpen->Flags, SRVOPEN_FLAG_ORPHANED))
+ ((Fobx != NULL) && BooleanFlagOn(Fobx->pSrvOpen->Flags,
SRVOPEN_FLAG_ORPHANED)))
{
if (Closing)
{