Author: tfaber
Date: Mon Nov 16 11:01:36 2015
New Revision: 69896
URL:
http://svn.reactos.org/svn/reactos?rev=69896&view=rev
Log:
[CDFS]
- Don't access file name buffer if its Length is zero in CdfsMakeAbsoluteFilename
CORE-10459
Modified:
trunk/reactos/drivers/filesystems/cdfs/create.c
Modified: trunk/reactos/drivers/filesystems/cdfs/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/cdfs/c…
==============================================================================
--- trunk/reactos/drivers/filesystems/cdfs/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/cdfs/create.c [iso-8859-1] Mon Nov 16 11:01:36 2015
@@ -50,7 +50,8 @@
/* verify related object is a directory and target name
don't start with \. */
if ((Fcb->Entry.FileFlags & FILE_FLAG_DIRECTORY) == 0 ||
- RelativeFileName->Buffer[0] == L'\\')
+ (RelativeFileName->Length >= sizeof(WCHAR) &&
+ RelativeFileName->Buffer[0] == L'\\'))
{
return STATUS_INVALID_PARAMETER;
}