Author: tfaber
Date: Sat Mar 4 14:48:05 2017
New Revision: 74051
URL:
http://svn.reactos.org/svn/reactos?rev=74051&view=rev
Log:
[FASTFAT]
- Avoid use after free in vfatDestroyFCB
Modified:
trunk/reactos/drivers/filesystems/fastfat/fcb.c
Modified: trunk/reactos/drivers/filesystems/fastfat/fcb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/fcb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/fcb.c [iso-8859-1] Sat Mar 4 14:48:05 2017
@@ -273,8 +273,8 @@
ExFreePool(pFCB->PathNameBuffer);
ExDeleteResourceLite(&pFCB->PagingIoResource);
ExDeleteResourceLite(&pFCB->MainResource);
+ ASSERT(IsListEmpty(&pFCB->ParentListHead));
ExFreeToNPagedLookasideList(&VfatGlobalData->FcbLookasideList, pFCB);
- ASSERT(IsListEmpty(&pFCB->ParentListHead));
}
BOOLEAN