From: Jeffrey Altman Date: Mon, 13 Aug 2012 21:56:02 +0000 (-0400) Subject: Windows: AFSProcessUserFsRequest NULL dereference X-Git-Tag: upstream/1.8.0_pre1^2~2100 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=aaa1844b8f806513661d16c6429d4d1b890471f2;p=packages%2Fo%2Fopenafs.git Windows: AFSProcessUserFsRequest NULL dereference Protect against an Irp with a NULL FsContext2 field. These represent Irps that are not intended for our device since they do not have an AFSCcb associated with it. Change-Id: I2cf6b60e022df5074482544ef3142374149e38d6 Reviewed-on: http://gerrit.openafs.org/7971 Tested-by: BuildBot Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp index a67e504bd..a8921668d 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFSControl.cpp @@ -172,6 +172,7 @@ AFSProcessUserFsRequest( IN PIRP Irp) pCcb = (AFSCcb *)pIrpSp->FileObject->FsContext2; if( pFcb == NULL || + pCcb == NULL || pCcb->DirectoryCB == NULL) {