Draft: ntdll: Avoid requests with null pointer but invalid size.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51770
-
v1:
-
v2:
- https://www.winehq.org/pipermail/wine-devel/2022-April/214306.html
- Validate pointer before calling wine_server_add_data.
-
v3: (d4a7440a)
- https://www.winehq.org/pipermail/wine-devel/2022-May/218285.html
- Move check to DeviceIoControl.
- Always use fixed values for IOCTL_STORAGE_GET_DEVICE_NUMBER.
- Remove warning at expected hang.
-
v4: (6a69c680)
- Fix typo in commit message.
- Modified format strings.
-
v5: (47784feb)
- Move test to own test function.
- Move check to wine_server_add_data.
-
v6: (8c641d09)
- Move check to NtDeviceIoControlFile
- Add (at least temporary) tests to compare with NtDeviceIoControlFile and NtFsControlFile.
Edited by Bernhard Übelacker