[FASTFAT]

Check PathName length before accessing it. This fixes ntdll_winetest file test BSOD. But the test crashes a bit farther.

svn path=/trunk/; revision=47981
This commit is contained in:
Pierre Schweitzer
2010-07-09 19:39:55 +00:00
parent ac309351d3
commit b50d23da11
+1 -1
View File
@@ -522,7 +522,7 @@ VfatCreateFile ( PDEVICE_OBJECT DeviceObject, PIRP Irp )
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);
}