mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-03 17:32:57 -05:00
sys: FspFileNameIsValid, FspFileNameIsValidPattern: check path component length
tst: memfs: allow filenames to be 512 chars long
This commit is contained in:
@ -299,7 +299,7 @@ static NTSTATUS FspFsvolCreateNoLock(
|
||||
ASSERT(NT_SUCCESS(Result));
|
||||
|
||||
/* check filename validity */
|
||||
if (!FspFileNameIsValid(&FileNode->FileName,
|
||||
if (!FspFileNameIsValid(&FileNode->FileName, FsvolDeviceExtension->VolumeParams.MaxComponentLength,
|
||||
FsvolDeviceExtension->VolumeParams.NamedStreams ? &StreamPart : 0,
|
||||
&StreamType))
|
||||
{
|
||||
|
Reference in New Issue
Block a user