Merge branch 'pvt-fix217'

This commit is contained in:
Bill Zissimopoulos 2019-03-11 13:03:49 -07:00
commit e2349fef10
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3

View File

@ -219,6 +219,13 @@ static NTSTATUS FspFsvolWriteCached(
} }
} }
/* double-check that the end offset is <= than the file size and fail if not */
if (WriteEndOffset > (UINT64)CcGetFileSizePointer(FileObject)->QuadPart)
{
FspFileNodeRelease(FileNode, Main);
return STATUS_INTERNAL_ERROR;
}
/* /*
* From this point forward we must jump to the CLEANUP label on failure. * From this point forward we must jump to the CLEANUP label on failure.
*/ */