Author: pschweitzer
Date: Fri Sep 4 15:37:15 2015
New Revision: 69000
URL:
http://svn.reactos.org/svn/reactos?rev=69000&view=rev
Log:
[NTFS]
Don't attempt to dereference a null pointer
CID 1321987
Modified:
trunk/reactos/drivers/filesystems/ntfs/fcb.c
Modified: trunk/reactos/drivers/filesystems/ntfs/fcb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/f…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/fcb.c [iso-8859-1] Fri Sep 4 15:37:15 2015
@@ -414,7 +414,7 @@
pathName[FileName->NameLength] = UNICODE_NULL;
}
- Size = NtfsGetFileSize(Vcb, Record, Stream, wcslen(Stream), &AllocatedSize);
+ Size = NtfsGetFileSize(Vcb, Record, (Stream ? Stream : L""), (Stream ?
wcslen(Stream) : 0), &AllocatedSize);
rcFCB = NtfsCreateFCB(pathName, Stream, Vcb);
if (!rcFCB)