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 (IsWrite)
{ {
if (0 == InputBuffer || 0 == InputBufferLength || if (0 == InputBuffer || 0 == InputBufferLength)
0 != OutputBuffer || 0 != OutputBufferLength || return STATUS_INVALID_BUFFER_SIZE;
FSP_FSCTL_TRANSACT_REQ_BUFFER_SIZEMAX - (FileNode->FileName.Length + sizeof(WCHAR)) <
InputBufferLength) if (0 != OutputBuffer || 0 != OutputBufferLength)
return STATUS_INVALID_PARAMETER; 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); Result = FsRtlValidateReparsePointBuffer(InputBufferLength, InputBuffer);
if (!NT_SUCCESS(Result)) if (!NT_SUCCESS(Result))
return Result; return Result;