1
0
mirror of https://github.com/winfsp/winfsp.git synced 2025-10-30 03:28:38 -05:00

sys: FspFsvolFileSystemControlReparsePointComplete

This commit is contained in:
Bill Zissimopoulos
2016-12-31 20:50:03 -08:00
parent d301164609
commit 62dbaf56e3

View File

@@ -134,12 +134,16 @@ static NTSTATUS FspFsvolFileSystemControlReparsePoint(
if (IsWrite)
{
if (0 == InputBuffer || 0 == InputBufferLength ||
0 != OutputBuffer || 0 != OutputBufferLength ||
FSP_FSCTL_TRANSACT_REQ_BUFFER_SIZEMAX - (FileNode->FileName.Length + sizeof(WCHAR)) <
InputBufferLength)
if (0 == InputBuffer || 0 == InputBufferLength)
return STATUS_INVALID_BUFFER_SIZE;
if (0 != OutputBuffer || 0 != OutputBufferLength)
return STATUS_INVALID_PARAMETER;
if (FSP_FSCTL_TRANSACT_REQ_BUFFER_SIZEMAX - (FileNode->FileName.Length + sizeof(WCHAR)) <
InputBufferLength)
return STATUS_IO_REPARSE_DATA_INVALID;
Result = FsRtlValidateReparsePointBuffer(InputBufferLength, InputBuffer);
if (!NT_SUCCESS(Result))
return Result;