sys: FspFsvolQueryFsAttributeInformation: fix buffer overrun error

This commit is contained in:
Bill Zissimopoulos
2016-09-20 20:55:10 -07:00
parent 5798527237
commit 8eebfe811d
3 changed files with 10 additions and 9 deletions

View File

@ -169,6 +169,7 @@ static NTSTATUS FspVolumeCreateNoLock(
if (I == PrefixLength)
return STATUS_INVALID_PARAMETER;
}
VolumeParams.FileSystemName[sizeof VolumeParams.FileSystemName / sizeof(WCHAR) - 1] = L'\0';
/* create volume guid */
Result = FspCreateGuid(&Guid);