mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[CDFS]
- Don't access file name buffer if its Length is zero in CdfsMakeAbsoluteFilename CORE-10459 svn path=/trunk/; revision=69896
This commit is contained in:
parent
043845e1cd
commit
5a28e79ccc
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ CdfsMakeAbsoluteFilename(PFILE_OBJECT FileObject,
|
|||
/* 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue