From eacae1ddd2c4afb25ce718074e5dbdcfc4854eb4 Mon Sep 17 00:00:00 2001 From: short <> Date: Wed, 26 Mar 2003 00:52:16 +0000 Subject: [PATCH] +sanity check of NULL IoGetCurrentIrpStackLocation(Irp)->FileObject --- ntoskrnl/io/irp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntoskrnl/io/irp.c b/ntoskrnl/io/irp.c index e967145..8b54d39 100644 --- a/ntoskrnl/io/irp.c +++ b/ntoskrnl/io/irp.c @@ -348,6 +348,8 @@ IoIsOperationSynchronous(IN PIRP Irp) /* Check the FILE_OBJECT's flags first. */ FileObject = IoGetCurrentIrpStackLocation(Irp)->FileObject; + if (FileObject == NULL) + KeBugCheck(0); if (!(FO_SYNCHRONOUS_IO & FileObject->Flags)) { /* Check IRP's flags. */ -- 1.8.3.1