mirror of
https://github.com/winfsp/winfsp.git
synced 2026-11-08 01:56:40 -06:00
sys: FspVolumeNotify: fix integer overflow vulnerability
This vulnerability was reported by: - Tay Kiat Loong (GitHub: @owl4444) - uhg (GitHub: @UltimateHG)
This commit is contained in:
1 parent
bdab233e92
commit
bd8b54c469
3 files changed
+37
No files matched your search
@@ -1389,6 +1389,9 @@ NTSTATUS FspVolumeNotify(
|
||||
if (0 == InputBufferLength)
|
||||
return FspVolumeNotifyLock(FsvolDeviceObject);
|
||||
|
||||
if (FSP_FSCTL_NOTIFY_INFO_SIZEMAX < InputBufferLength)
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
|
||||
if (!FspDeviceReference(FsvolDeviceObject))
|
||||
return STATUS_CANCELLED;
|
||||
|
||||
|
||||
Reference in new issue
Block a user