mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:42:59 +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
|
/* verify related object is a directory and target name
|
||||||
don't start with \. */
|
don't start with \. */
|
||||||
if ((Fcb->Entry.FileFlags & FILE_FLAG_DIRECTORY) == 0 ||
|
if ((Fcb->Entry.FileFlags & FILE_FLAG_DIRECTORY) == 0 ||
|
||||||
RelativeFileName->Buffer[0] == L'\\')
|
(RelativeFileName->Length >= sizeof(WCHAR) &&
|
||||||
|
RelativeFileName->Buffer[0] == L'\\'))
|
||||||
{
|
{
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue