Author: tfaber Date: Sun Nov 29 20:23:43 2015 New Revision: 70214
URL: http://svn.reactos.org/svn/reactos?rev=70214&view=rev Log: [FASTFAT] - Handle multiple trailing backslashes without asserting CORE-10483
Modified: trunk/reactos/drivers/filesystems/fastfat/create.c
Modified: trunk/reactos/drivers/filesystems/fastfat/create.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fastfat... ============================================================================== --- trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] (original) +++ trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] Sun Nov 29 20:23:43 2015 @@ -597,6 +597,11 @@ PathNameU.Length -= sizeof(WCHAR); }
+ if (PathNameU.Length > sizeof(WCHAR) && PathNameU.Buffer[PathNameU.Length/sizeof(WCHAR)-1] == L'\') + { + return STATUS_OBJECT_NAME_INVALID; + } + /* Try opening the file. */ if (!OpenTargetDir) {