Armin Novak
a8c6f012d8
Silence SCARD_E_TIMEOUT warnings
...
These occur quite often for status calls, so reduce log verbosity.
2020-05-08 11:06:02 +02:00
akallabeth
e928888dab
Fixed various input buffer length checks in URBDRC
...
Thanks to hac425 CVE-2020-11039
2020-05-08 11:06:02 +02:00
akallabeth
c1cef2d68c
Fixed int overflow in smartcard_ndr_read
...
Thanks to hac425
2020-05-08 11:06:02 +02:00
akallabeth
af2ce439e1
Fixed int overflow in msusb_mspipes_read
...
Thanks to hac425
2020-05-08 11:06:02 +02:00
akallabeth
4c07a00403
Fixed int overflow in printer_write_setting
...
Thanks to hac425
2020-05-08 11:06:02 +02:00
akallabeth
98a4cd28bd
Fixed int overflow in PresentationContext_new
...
Thanks to hac425 CVE-2020-11038
2020-05-08 11:06:02 +02:00
akallabeth
7c94b425e6
Fixed oob read in rdpsnd_recv_wave2_pdu
...
Check format index before using it.
Thanks to hac425 CVE-2020-11041
2020-05-05 07:46:10 +02:00
akallabeth
00b5ff301f
Fixed clipboard 'called with invalid type' warning
2020-05-05 07:46:10 +02:00
akallabeth
f3de3ee16b
Fix short format name configuration and format list return.
2020-05-05 07:46:10 +02:00
akallabeth
55f18cb8a5
Fix oob read in msusb_msconfig_read
2020-05-05 07:46:10 +02:00
akallabeth
a1a6790f99
Fixed oob read in irp_write and similar
2020-05-05 07:46:10 +02:00
akallabeth
b375d84ed6
Fixed oob read in parallel_process_irp_create
2020-05-05 07:46:10 +02:00
akallabeth
8d3d953264
Fixed oob read in parallel_process_irp_read
2020-05-05 07:46:10 +02:00
akallabeth
1d28ba56bd
Fixed oob read in parallel_process_irp_write
2020-05-05 07:46:10 +02:00
akallabeth
b73143cf7e
Fixed oob read in cliprdr_read_format_list
2020-05-05 07:46:10 +02:00
akallabeth
495cb2e312
Fixed cliprdr_server_receive_capabilities
...
Thanks to hac425 CVE-2020-11017, CVE-2020-11018
2020-05-05 07:46:10 +02:00
qarmin
9fd86bee46
Don't allow to overflow dev_array array
2020-05-05 07:46:10 +02:00
Lukas Fink
6425313776
Fixes null dereference bug
...
Avoids a null function pointer dereference that happened, when
freerdp_urbdrc_client_subsystem_entry failed before invoking
udevman_load_interface.
2020-05-05 07:46:09 +02:00
Lukas Fink
aae9640beb
Implemented udevman->hotplug_vid_pids as wArrayList
2020-05-05 07:46:09 +02:00
Lukas Fink
c668d66e88
Added ability to add usb devs via id and addr simultaneously
...
It is now possible to add usb devices both via vid+pid and via bus+addr
at the same time. To do this, the ids are directly
given to the corresponding command line options:
/usb🆔 <vid+pids>,addr:<bus+addrs>
The dev option still works like before: /usb:id,dev:<vid+pids> or
/usb:addr,dev:<bus+addrs>
2020-05-05 07:46:09 +02:00
Lukas Fink
efb929644e
Added hotplug to /usb:id,dev option
...
Devices specified with the /usb:id,dev command line option are now
detected by the hotplug callback.
2020-05-05 07:46:09 +02:00
Lukas Fink
2e86e36200
Fixed /usb:dev command line option
...
The /usb:dev command line option failed silently, because it tried to add the
devices before urbdrc gets initialized. This commit adds a new function
to udevman, that gets called when the urbdrc addin is initialized.
Registering of the given devices is now performed there.
2020-05-05 07:46:09 +02:00
Alex Wilson
6e73a9ecf2
SCardReadCache/SCardWriteCache should actually cache data
...
Currently since the hash/keyCompare/keyClone members on the
context->cache were never being set, we were using the
HashTable_Pointer* variants, meaning that lookup always
failed (since we never ask for the same *pointer* twice).
This also revealed that the logic for autoallocate on these ops
was a bit backwards, and some error codes and support for the
"freshness" counter were missing.
In Win10 (at least with some card minidrivers) the freshness
counter is load-bearing and smartcard login won't work without
implementing a very basic version of it.
2020-04-28 14:03:19 +02:00
akallabeth
5587bc6fc3
Removed casts in udevman_parse_device_id_addr
2020-04-28 14:03:19 +02:00
Lukas Fink
af6aa50020
Refactored parsing of usb dev: command line option
...
Refactored urbdrc_udevman_register_devices with its helper functions,
because the old implementation was a bit quirky. Removed a unsafe
strcpy, that led to a buffer overflow when given misonstructed command
line options. Doing something like "/usb:id,dev🔢 1234##abcd:abcd"
won't work anymore, too.
2020-04-28 14:03:19 +02:00
akallabeth
d366b426f9
Fixi #6086 : smartcard filter early abort.
...
Do not abort before incrementing read position.
2020-04-28 14:03:19 +02:00
Armin Novak
adb7aeb796
Fixed cups httpConnectEncrypt deprecation warning.
2020-04-28 14:03:19 +02:00
jacobopantoja
9c79bc29f6
Restrict USBDK to Windows builds
...
This commit restricts ebdaea6f3b
to just Win32 builds
2020-04-28 14:03:19 +02:00
akallabeth
aa39e08c29
Fixed URBDRC DEVICE_ADD_FLAG definitions
2020-04-10 14:16:19 +02:00
akallabeth
42d40261c5
Fixed return type for subsystem entry
2020-04-10 14:11:15 +02:00
akallabeth
de7ea07a3d
Fixed URBDRC parsing error reported in #6024 .
2020-04-09 18:00:51 +02:00
Alex Wilson
c6e675bfb7
Always copy null terminator when filtering smartcard list
2020-04-09 10:44:25 +02:00
Martin Fleisz
99786970a3
Merge pull request #5884 from akallabeth/smartcard_ndr_strict
...
Smartcard tighter input validation
2020-03-31 08:34:04 +02:00
akallabeth
2749de506c
Added missing context and handle read.
2020-03-30 11:07:47 +02:00
Armin Novak
f360d445e2
Pack smartcard channel structs to 1 byte alignment
2020-03-27 18:24:25 +01:00
akallabeth
ac4ec690c9
Removed a few magic numbers.
2020-03-27 15:03:59 +01:00
akallabeth
80177efe69
Fixed typos, make status comparisons explicit.
2020-03-27 14:49:09 +01:00
Armin Novak
c406f7a972
Fixed misleading log message.
2020-03-10 14:05:10 +01:00
Armin Novak
b40762c542
Removed unused function
2020-03-10 14:04:53 +01:00
Armin Novak
cb9e7fda32
Removed unused function.
2020-03-10 14:04:53 +01:00
Armin Novak
c58db76e4c
Fixed return check for usbdk backend.
2020-03-09 16:40:07 +01:00
Armin Novak
4692f00864
Removed unnecessary cast.
2020-03-09 16:40:07 +01:00
Kobi Mizrachi
929457db4c
egfx: client: add missing NULL checks
2020-03-09 08:28:40 +01:00
Armin Novak
5690780bdd
[RDPEGFX] checks for cache import, prevent 0 size allocations
2020-03-06 12:28:21 +01:00
Armin Novak
95522923ba
Move libusb hotplug registration to polling thread.
...
* libusb polling thread now is responsible for hotplug registration
and removal as well as cleanup.
* Only register hotplug callback on systems with support.
2020-03-06 12:07:22 +01:00
Armin Novak
ebdaea6f3b
enable usbdk on windows.
2020-03-06 12:07:22 +01:00
Armin Novak
e867ad3c9d
Fixed compilation issues against libusb on windows
2020-03-06 12:07:22 +01:00
Armin Novak
35d7e896ae
Fix GFX cache eviction, use 1 based indexing.
2020-03-04 11:01:23 +01:00
Martin Fleisz
6942669f32
Merge pull request #5941 from akallabeth/clang_fixes
...
Fixed clang scanbuild warnings.
2020-03-04 09:34:51 +01:00
Martin Fleisz
174832150e
Merge pull request #5932 from nfedera/fix_gfx_bitmapcache_indexing
...
Fix RDPEGFX bitmap cache indexing
2020-03-04 09:31:52 +01:00