Commit Graph

14195 Commits

Author SHA1 Message Date
akallabeth
c098f21fda Fixed oob read in ntlm_read_ntlm_v2_response 2020-05-05 07:46:10 +02:00
akallabeth
f59ad0f15c Fixed oob read in ntlm_read_NegotiateMessage 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
Armin Novak
bc4615e5ed Added expert settings /tune and /tune-list 2020-05-05 07:46:10 +02:00
akallabeth
da03f7e04e Fixed #6122: Allow SSL server and client purpose 2020-05-05 07:46:10 +02:00
akallabeth
55ee2cce34 Fixed #6087: Inconsistend scroll on wayland
Thanks to @yol and @SaschaWessel a bug in scroll step conversion
was uncovered. The RDP value ranges are inverted when scrolling
in negative direction.
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
qarmin
59aa24e1e5 Fixed copy paste error in MessagePipe.c 2020-05-05 07:46:10 +02:00
Sascha Wessel
fa059c8912 libuwac/input: Fix memory leak
`create_pointer_buffer()` allocates memory with `mmap` and never frees it.

Adding a corresponding `munmap` fixes this issue.
2020-05-05 07:46:10 +02:00
akallabeth
c0a17eb342 Fixed #6121: Use correct destination color format 2020-05-05 07:46:10 +02:00
akallabeth
5d56937e20 Workaround #6072: FFMPEG AAC encoding graded experimental
Due to many reporing issues with different AAC encoder configurations
deactivate support by default. Can be enabled by compiling with
experimental codec support.
2020-05-05 07:46:09 +02:00
Sascha Wessel
fe9a5ae5a9 wlfreerdp/cliprdr: Initialize pointer before use
In `wlf_cliprdr_server_format_data_request()` `ConvertToUnicode()` may return 0
while not allocating memory for `cdata` and not setting `cdata` to a valid
address. In this case, `data` points to a random address.

Settting `cdata` to NULL before calling `ConvertToUnicode()` fixes this issues.
2020-05-05 07:46:09 +02:00
Sascha Wessel
a74d5b630c libuwac/window: Fix memory leak / SIGBUS
`UwacWindowShmAllocBuffers()` allocates memory with `mmap` and never frees it
resulting in SIGBUS errors and running out of memory after some time.

Adding a corresponding `munmap` fixes this issue.
2020-05-05 07:46:09 +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
Raul Fernandes
54c902b3b5 Optimize function xcrush_copy_bytes()
Use memcpy to copy the bytes when we can assure that the memory areas does not overlap.
When the areas overlap, copy the area that doesn't overlap repeatly.
With this change, the copy is ~30x faster.
2020-05-05 07:46:09 +02:00
Zhu Qun-Ying
2ed941f9e2 possible memory leak when various functions return failure. (#6110)
* possible memory leak when allocation failed.

* Use initialization in stead of ZeroMemory

* Format with clang-format
2020-05-05 07:46:09 +02:00
Zhu Qun-Ying
63c76ae02d use WINPR_MD5_DIGEST_LENGTH in stead of magic number for hash array 2020-05-05 07:46:09 +02:00
Zhu Qun-Ying
47be0ea985 Use NTOWFv2FromHashW() in NTOWFv2W() to avoid duplicate code 2020-05-05 07:46:09 +02:00
Allan Nordhøy
cf13402baf Spelling fixes for iOS strings 2020-05-05 07:46:09 +02:00
akallabeth
973731824b Fixed #6099: Add a flag for legacy hash entries
If a legacy entry is found in certificate hash store print
additional information to the user informing about the change
with FreeRDP 2.0
2020-04-28 14:03:19 +02:00
akallabeth
97bd60ba67 Refactored pointer and/xor data copying
Using unified function upate_pointer_copy_andxor to copy now.
2020-04-28 14:03:19 +02:00
akallabeth
cfc0d060c6 Refactored freerdp_image_copy_from_pointer_data
Split monochrome and color pointer handling to separate functions.
2020-04-28 14:03:19 +02:00
akallabeth
28e6c2e1d9 Fixed #6101: POINTER_LARGE_UPDATE serialization
The length check and field sizes in _update_read_pointer_large
were off, corrected according to [MS-RDPBCGR] 2.2.9.1.2.1.11
Fast-Path Large Pointer Update (TS_FP_LARGEPOINTERATTRIBUTE)
2020-04-28 14:03:19 +02:00
akallabeth
ccaad04876 Fix initialization of LargePointer flags
Capability exchange is first reading server capabilities,
mask these with local settings and send only what both support.
2020-04-28 14:03:19 +02:00
akallabeth
150343978d Fixed [MS-RDPBCGR] 2.2.9.1.1.4.4 Color Pointer Update
The pointer size is limited to 32 pixel in width and height
unless LARGE_POINTER_FLAG_96x96 is set which increases the size
to 96 pixel.
2020-04-28 14:03:19 +02:00
David Fort
56ca7a6e3a uwac, wlfreerdp: corrected API for UwacOutput and added monitor listing 2020-04-28 14:03:19 +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
216f03c849 Fix #6085: Java string comparison should prefer equals 2020-04-28 14:03:19 +02:00
Raul Fernandes
4df7200836 Cache the calculated color
In desktop area, the next color has high odds to be the same of previous color.
If we cache the value, it can be reused by the next pixel avoiding recalculation.
This optimization can halve the function's processing.
2020-04-28 14:03:19 +02:00
Martin Haimberger
127a96d853 removed unnecessary casts, use sizeof for debug printing 2020-04-28 14:03:19 +02:00
Martin Haimberger
d104d2c7c7 fix: server side ntlmv2 implementation
- in the case no mic was present, but the user was found,
  the enterd password was ignored and the user authenticated
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
akallabeth
cc6831ae31 Moved PROGRESSIVE_BLOCK_REGION to heap. 2020-04-28 14:03:19 +02:00
Allan Nordhøy
64de28cabc Language fixes for aFreeRDP 2020-04-28 14:03:19 +02:00
Allan Nordhøy
ffbe0ae078 Add Norwegian Bokmål translation 2020-04-28 14:03:19 +02:00
Julian Albrecht
ccd7c26ad5 Adds the title options to wlfreerdp 2020-04-28 14:03:19 +02:00
Armin Novak
2d0a136e8e Fixed #6067: Better CMake warning for deactivated image scaling 2020-04-28 14:03:19 +02:00
Armin Novak
6738347d48 Fix #6066, #6045: Disable spincount by default. 2020-04-28 14:03:19 +02:00
Armin Novak
4cfc5b25ef Fixed data type warnings 2020-04-28 14:03:19 +02:00
Armin Novak
808928ee7e Fixed format string warnings. 2020-04-28 14:03:19 +02:00
Armin Novak
adb7aeb796 Fixed cups httpConnectEncrypt deprecation warning. 2020-04-28 14:03:19 +02:00
Nathan Loewen
b29bdf5984 Make use of percent scale if available when calculating monitor sizes 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