reactos/drivers
Oleg Dubinskiy d96b3cd45c
[KS] Fix bug in KsStreamIo (#4663)
Properly set output buffer length in IO Stack Location of the current IRP, since it is passed to KsProbeStreamIrp when calling KsStreamIo, so it fails if the length isn't set properly.

Don't set an input buffer length and the buffer itself, since it isn't passed anywhere, so setting it makes no sense. Moreover, MSDN says that for IOCTL_KS_READ/WRITE_STREAM, only output buffer (and its length) is needed to be set, but not an input one. So it indeed is more correct.

It fixes buffer overflow in KsProbeStreamIrp when attempting to perform the streaming via KsStreamIo. I discovered this bug during my audio refactoring from PR #4660.
2023-10-06 12:36:09 +02:00
..
base [KDGDB] Fix GCC build. Addendum to commits b577ac07 and de81021ba. 2023-04-05 03:33:42 +02:00
battery [CMAKE] Use modules instead of shared libraries 2019-04-06 17:43:38 +02:00
bluetooth [REACTOS] Silence warnings in 3r-party code 2021-07-23 22:03:48 +02:00
bus [PCI] Fix I/O range size of the resource descriptors 2023-01-21 07:33:03 +01:00
crypto [KSECDD] Fix RtlEncryptMemory and improve test 2020-09-25 09:39:51 +02:00
filesystems [FASTFAT][NTDLL_APITEST] Add missing semicolon after _SEH2_END (#5568) 2023-08-15 18:16:31 +02:00
filters [FLTMGR] CreateClientPort(): Fix ObInsertObject() error handling 2021-12-28 02:27:50 +03:00
hid [ACLEDIT][MSIMG32][HIDCLASS] Fix DLL-main function argument type in spec file. 2022-10-06 16:16:40 +02:00
input [INPORT] Fix swapped buttons for the inport bus mouse 2023-08-05 16:40:07 +03:00
ksfilter [KS] Fix bug in KsStreamIo (#4663) 2023-10-06 12:36:09 +02:00
multimedia [DLLs] Fix .spec files regarding OLE-specific exports. 2019-07-28 16:26:22 +02:00
network [TCPIP] Setup a security descriptor for the IP and TCP device objects 2023-10-04 18:04:17 +02:00
parallel [DRIVERS] Use IoForwardIrpSynchronously in drivers 2022-01-05 02:17:56 +03:00
processor [INF] More deduplication and style harmonization (#4952) 2022-12-28 02:26:17 +01:00
sac [SACDRV] Add 2 OBJ_KERNEL_HANDLE 2022-05-08 19:42:49 +02:00
serial [DRIVERS] Add some missing OBJ_KERNEL_HANDLE (#4493) 2022-05-07 22:12:19 +03:00
setup [BLUE] Optimize ScrIoControl for speed (#5185) 2023-03-28 08:12:38 +09:00
storage [PCIIDEX] Improve and fix the driver 2023-07-16 13:20:30 +03:00
usb [USBSTOR_NEW] Add missing poppack.h 2023-01-30 15:12:06 +01:00
wdm [CMICONTROL] Fix MSVC 14.2 dbg x64 warning C4267 (#5696) 2023-09-27 17:34:32 +00:00
wmi [FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces 2021-06-11 15:33:08 +03:00
CMakeLists.txt Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00