mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user