Author: pschweitzer
Date: Fri Jul 9 19:39:55 2010
New Revision: 47981
URL:
http://svn.reactos.org/svn/reactos?rev=47981&view=rev
Log:
[FASTFAT]
Check PathName length before accessing it. This fixes ntdll_winetest file test BSOD. But
the test crashes a bit farther.
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/fastfa…
==============================================================================
--- trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/fastfat/create.c [iso-8859-1] Fri Jul 9 19:39:55
2010
@@ -522,7 +522,7 @@
return(STATUS_OBJECT_NAME_INVALID);
}
}
- if (FileObject->RelatedFileObject && PathNameU.Buffer[0] ==
L'\\')
+ if (FileObject->RelatedFileObject && PathNameU.Length >
sizeof(WCHAR) && PathNameU.Buffer[0] == L'\\')
{
return(STATUS_OBJECT_NAME_INVALID);
}