Author: tfaber Date: Fri Sep 4 08:37:01 2015 New Revision: 68986
URL: http://svn.reactos.org/svn/reactos?rev=68986&view=rev Log: [FASTFAT] - Don't try to free an uninitialized pointer in VfatSetRenameInformation. CID 1250303 - Actually use the dynamically calculated HashTableSize. CID 1237119/1237120/1237121
Modified: trunk/reactos/drivers/filesystems/fastfat/finfo.c trunk/reactos/drivers/filesystems/fastfat/fsctl.c trunk/reactos/drivers/filesystems/fastfat/vfat.h
Modified: trunk/reactos/drivers/filesystems/fastfat/finfo.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat... ============================================================================== --- trunk/reactos/drivers/filesystems/fastfat/finfo.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat/finfo.c [iso-8859-1] Fri Sep 4 08:37:01 2015 @@ -529,6 +529,7 @@ RootFCB = RootFileObject->FsContext; }
+ RtlInitEmptyUnicodeString(&NewName, NULL, 0); ParentFCB = NULL;
if (TargetFileObject == NULL)
Modified: trunk/reactos/drivers/filesystems/fastfat/fsctl.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat... ============================================================================== --- trunk/reactos/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] Fri Sep 4 08:37:01 2015 @@ -429,7 +429,6 @@ { HashTableSize = 65537; // 65536 = 64 * 1024; } - HashTableSize = FCB_HASH_TABLE_SIZE; DPRINT("VFAT: Recognized volume\n"); Status = IoCreateDevice(VfatGlobalData->DriverObject, ROUND_UP(sizeof (DEVICE_EXTENSION), sizeof(ULONG)) + sizeof(HASHENTRY*) * HashTableSize,
Modified: trunk/reactos/drivers/filesystems/fastfat/vfat.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat... ============================================================================== --- trunk/reactos/drivers/filesystems/fastfat/vfat.h [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat/vfat.h [iso-8859-1] Fri Sep 4 08:37:01 2015 @@ -264,8 +264,6 @@ } HASHENTRY;
-#define FCB_HASH_TABLE_SIZE 65536 - typedef struct DEVICE_EXTENSION *PDEVICE_EXTENSION;
typedef NTSTATUS (*PGET_NEXT_CLUSTER)(PDEVICE_EXTENSION,ULONG,PULONG);