akallabeth [Fri, 15 May 2020 15:49:55 +0000 (17:49 +0200)]
utf8 behaviour fixes
(cherry picked from commit
bb78eb4fa6f8618a70995eaf17aba94cc47a1e74)
akallabeth [Fri, 15 May 2020 15:28:13 +0000 (17:28 +0200)]
Rewritten rdp_recv_logon_info_v2 to remove unaligned access
(cherry picked from commit
66d182a84bed7bf19b6a99d71a4e4c7c6856f583)
akallabeth [Fri, 15 May 2020 15:18:57 +0000 (17:18 +0200)]
Rewritten check to satisfy BehaviouralSanitizer
(cherry picked from commit
14829de866b43e7f2740b46f0c736b9adf5067eb)
akallabeth [Fri, 15 May 2020 14:55:58 +0000 (16:55 +0200)]
Fixed BehaviourSanitizer warning in rdp parser
(cherry picked from commit
771332c04e2dbad964d0cb11a86ff561e792bc35)
akallabeth [Fri, 15 May 2020 14:38:42 +0000 (16:38 +0200)]
Fixed memory leak in NTLM test
(cherry picked from commit
135458cf27160d50e6294f87ef80f27f1f65d319)
akallabeth [Fri, 15 May 2020 14:30:02 +0000 (16:30 +0200)]
Fixed undefined behaviour
(cherry picked from commit
c15929d821ce99aa8c1069f790f4addbe9439593)
akallabeth [Fri, 15 May 2020 14:04:28 +0000 (16:04 +0200)]
Fixed undefined behaviour in primitives shift
(cherry picked from commit
436bd3dbb103c7c49e51ffb1cafad6f25ab05d66)
akallabeth [Fri, 15 May 2020 13:43:33 +0000 (15:43 +0200)]
Fixed undefined behaviour in ncrush
(cherry picked from commit
83137d2a1bb732fbea2f20778924a50a79f63fef)
akallabeth [Fri, 15 May 2020 13:40:12 +0000 (15:40 +0200)]
Fixed undefined behaviour in rfx decoder
(cherry picked from commit
ef611d34d61c6590429c17db5c97f0a9a33147e8)
akallabeth [Fri, 15 May 2020 13:34:42 +0000 (15:34 +0200)]
Fixed UndefinedBehaviour in planar left shift
(cherry picked from commit
328691c46597c194f01a77a9d33d58b2faa88c9d)
akallabeth [Fri, 15 May 2020 13:04:05 +0000 (15:04 +0200)]
Fixed BehaviourSanitizer warnings in streams.
(cherry picked from commit
66ea3d0579841b468684e05936fabf654727e720)
akallabeth [Fri, 15 May 2020 12:49:52 +0000 (14:49 +0200)]
Fixed memory leak in ini parser and test functions.
(cherry picked from commit
7f9997595918e8b6a2acec2ff40f5779fa183038)
akallabeth [Fri, 15 May 2020 10:22:37 +0000 (12:22 +0200)]
Refactored settings clone/free, extended tests
(cherry picked from commit
773ad6e9791844ca3ccdc40d378a37fc0238ef0a)
akallabeth [Fri, 15 May 2020 09:20:24 +0000 (11:20 +0200)]
Fixed BehaviorSanitizer warnings.
(cherry picked from commit
b5dfc15183b752a5d9c6da01225ed281b20001cf)
akallabeth [Fri, 15 May 2020 09:16:50 +0000 (11:16 +0200)]
Fixed BehaviorSanitizer warnings
(cherry picked from commit
0d28390319025c86e7e9d7cc776d88ef24f9db0e)
akallabeth [Fri, 15 May 2020 09:16:18 +0000 (11:16 +0200)]
Always require aligned memory for interleaved codec.
(cherry picked from commit
20c11fb7178462a8ba36b4fdbfb3e2a03197356f)
akallabeth [Fri, 15 May 2020 09:15:21 +0000 (11:15 +0200)]
Fixed BehaviorSanitizer warnings
(cherry picked from commit
afdd81dab5c484ab95b977a0d71f3809c8fa89a3)
akallabeth [Fri, 15 May 2020 09:14:44 +0000 (11:14 +0200)]
Fixed BehaviorSantizer warnings.
(cherry picked from commit
7a509fe27749e006a9a58854c4abb4522fc58c81)
akallabeth [Fri, 15 May 2020 08:17:31 +0000 (10:17 +0200)]
Fixed GHSL-2020-100: oob read in ntlm_read_ChallengeMessage
* Added length checks for data read from stream
* Unified function resource cleanup
(cherry picked from commit
8357dedbbf7213b7d0d18f1026145b9a5b92235a)
Kentaro Hayashi [Sun, 10 May 2020 07:35:20 +0000 (16:35 +0900)]
Fixed typos (Otherweise)
Otherweise ->
Otherw ise
^
(cherry picked from commit
148f3c675d02da2c7f19b3099ba8792f5594416b)
Vladyslav Hordiienko [Wed, 6 May 2020 09:36:44 +0000 (12:36 +0300)]
improve RFX DWT algorithm
merge multiple loops into the one loop for vertical DWT inverse
(cherry picked from commit
fff9eba34af8a54bd93b1a7ccdda0a6a6898f755)
Vladyslav Hordiienko [Wed, 6 May 2020 08:05:04 +0000 (11:05 +0300)]
fix typo in GFX logs
(cherry picked from commit
a79635fd1c9e12c4ea543f461f03c0dd83d5e063)
Victor K [Fri, 15 May 2020 00:50:20 +0000 (03:50 +0300)]
Windows Authentication - Then launced with username argument prefill the name in the authentication box.
(cherry picked from commit
318075676b5ea610b1ba47da600eb418812951cb)
akallabeth [Mon, 18 May 2020 10:07:59 +0000 (12:07 +0200)]
Refactored sam functions to utilize strtok_s
(cherry picked from commit
ddb388e1527de69e47d55068d8a318ef270fc4a0)
akallabeth [Mon, 18 May 2020 09:18:55 +0000 (11:18 +0200)]
Replaced strtok with strtok_s
(cherry picked from commit
7890833af8a891765a475bd7ae2a756aeddd4977)
akallabeth [Mon, 18 May 2020 12:27:13 +0000 (14:27 +0200)]
Fixed NULL access of context struct on screen draw
Added a log message to fix occurances later on.
(cherry picked from commit
cfea3fc6ed01aa33c1a935da42572577ba832feb)
akallabeth [Mon, 18 May 2020 12:20:11 +0000 (14:20 +0200)]
Extend lifetime of streampool in drdynvc
The stream pool can not be released until all streams have been
returned. This might happen as late as channel termination, so
change the lifetime scope accordingly.
(cherry picked from commit
5bd4cfcdc013cdd0c0d7c9b6eec878dd8a297575)
akallabeth [Mon, 18 May 2020 08:26:09 +0000 (10:26 +0200)]
Fixed sample client resource cleanup
(cherry picked from commit
e716f823115463fc66d94dd6c044ba7c47c43fe1)
Kobi Mizrachi [Mon, 18 May 2020 08:35:52 +0000 (11:35 +0300)]
change use of strtok to strtok_s
(cherry picked from commit
6013a96bff20affbb4c0a1780d35a751eafa4903)
akallabeth [Tue, 12 May 2020 14:34:01 +0000 (16:34 +0200)]
Fixed drdynvc_send stream release
(cherry picked from commit
a497e78d37b63f8f342be56e1732c5a891b5ba0d)
akallabeth [Tue, 12 May 2020 12:26:45 +0000 (14:26 +0200)]
Fixed DestroyListener arguments and call order
(cherry picked from commit
0e08727d4ecff2777884a23bc33961f63d52465e)
akallabeth [Tue, 12 May 2020 11:00:13 +0000 (13:00 +0200)]
Fixed #6148: multiple ceritificate purposes
OpenSSL certificate verification can only check a single purpose.
Run the checks with all allowed purposes and accept any.
(cherry picked from commit
f3063a589d908a087a295b9217bc5fa34a80fb36)
Kobi Mizrachi [Tue, 12 May 2020 10:30:20 +0000 (13:30 +0300)]
server: proxy: use peer load balance info when host is fetched from config
(cherry picked from commit
6f4682a043d20b794540827fe8604354477bb7af)
akallabeth [Tue, 12 May 2020 08:54:07 +0000 (10:54 +0200)]
Destroy channel listeners on terminate
(cherry picked from commit
2f5e5359f60c26a2de244cd6d9f7957b039cd121)
akallabeth [Tue, 12 May 2020 08:21:06 +0000 (10:21 +0200)]
drdynvc channel cleanup.
* Clean channel listeners on channel close
* Remove limit on listeners for channels
* Remove limit on channels
(cherry picked from commit
5b2a4434d8becd7b527d5b329eee9915ff8ca77a)
akallabeth [Tue, 12 May 2020 07:09:13 +0000 (09:09 +0200)]
Ensure all NLA structs are freed up
(cherry picked from commit
477ad675f31a1965833304f79406599e0ad97b82)
akallabeth [Tue, 12 May 2020 06:46:06 +0000 (08:46 +0200)]
Fixed #6157: Reset cups instance on disconnect.
(cherry picked from commit
13906f3ec629af4b2b2aeb5b92845f99b7bf7747)
akallabeth [Mon, 11 May 2020 07:56:18 +0000 (09:56 +0200)]
Fixed #6163: Force linking to objective C runtime
Sound channel requires the objective C runtime, force linking to
fix build issues on older mac os versions
(cherry picked from commit
eee1d7176b885d09385471bec943c9aabc4a1552)
akallabeth [Mon, 11 May 2020 06:50:15 +0000 (08:50 +0200)]
Fixed #6156: Enforce synchronized encrypt count
Old style RDP encryption uses a counter, synchronize this for
packets send from different threads.
(cherry picked from commit
873a9bef42017ff694659538f70909f679eb1eac)
akallabeth [Mon, 11 May 2020 06:40:13 +0000 (08:40 +0200)]
Fixed #6162: Clipboard temporary path length limit
The limit of clipboard temporary paths is 260 '\0' terminated
wide characters. Fix the checks to enforce that properly.
(cherry picked from commit
06bfcfad672522598a39522830449b444d50a9e4)
Kobi Mizrachi [Sun, 10 May 2020 05:33:25 +0000 (08:33 +0300)]
server: proxy: Register signal handler after modules finished loading.
This prevents a race where the signal handler free's structs that
modules use while initializing.
(cherry picked from commit
42d99f4c6070a984afc43ec7e85650dc4e624af8)
Kobi Mizrachi [Sun, 10 May 2020 05:33:07 +0000 (08:33 +0300)]
server: proxy: print version and buildconfig on startup
(cherry picked from commit
f0fe17d94364087136354284543573bf54da162f)
Bernhard Miklautz [Fri, 8 May 2020 09:40:17 +0000 (11:40 +0200)]
Merge pull request #6152 from akallabeth/stable-backports
Stable backports
akallabeth [Tue, 5 May 2020 05:50:40 +0000 (07:50 +0200)]
2.1.0 release version.
akallabeth [Tue, 5 May 2020 09:46:19 +0000 (11:46 +0200)]
Changelog for 2.1.0
akallabeth [Wed, 29 Apr 2020 13:47:00 +0000 (15:47 +0200)]
Fixed integer overflow in winpr_image_bitmap_read_buffer
Thanks to hac425
(cherry picked from commit
dffd893dc5874b63c99777d7df147e37c770fc92)
akallabeth [Fri, 8 May 2020 07:39:10 +0000 (09:39 +0200)]
Changed smartcard no reader log message level to info
(cherry picked from commit
728f6aff516a12ac8720aa0c9fa1730cde348dca)
akallabeth [Fri, 8 May 2020 07:37:19 +0000 (09:37 +0200)]
Fixed wrong error return from drdynvc_write_data
When the channel was closed a wrong error code was returned.
(cherry picked from commit
6446d609fc95830d7c9c1e6a91829146d567e277)
akallabeth [Thu, 7 May 2020 14:19:54 +0000 (16:19 +0200)]
Silence valgrind in rdp_read_header
If a disconnect message is received, we returned success but did
not initialize the return arguments.
(cherry picked from commit
b45336f51febb4c34b5bf33fdf8d63ce44fe9e99)
akallabeth [Thu, 7 May 2020 13:38:35 +0000 (15:38 +0200)]
Silence valgrind in unicode conversion functions
Only check destination buffer for NULL if length argument did not
already indicate the buffer needs to be allocated.
(cherry picked from commit
ebe223e7a4ba0131b55e0c8e8baa98deb3f89c4b)
akallabeth [Thu, 7 May 2020 09:13:06 +0000 (11:13 +0200)]
Increased uwac library version.
(cherry picked from commit
58b313e6d95d96f942b451c9b635fbc70fe415cf)
akallabeth [Tue, 5 May 2020 15:02:34 +0000 (17:02 +0200)]
Create data copy in case of dynamic sound channel.
(cherry picked from commit
f016f1ec09056db856fb662876f934dbc754bc0c)
akallabeth [Mon, 4 May 2020 08:57:19 +0000 (10:57 +0200)]
Fixed warning messages for RDP file options
networkautodetect and bandwidthautodetect are both boolean options
which must match each other. Added adequate warnings.
(cherry picked from commit
5f5bf10703276be3ddb0c5d184e078c0a6a857bb)
akallabeth [Tue, 5 May 2020 11:07:15 +0000 (13:07 +0200)]
Use dedicated sound decoder thread.
akallabeth [Tue, 5 May 2020 08:31:26 +0000 (10:31 +0200)]
Fixed primary monitor index for wayland fullscreen
akallabeth [Tue, 5 May 2020 08:29:25 +0000 (10:29 +0200)]
Fixed UwacDisplayGetOutput and UwacOutputGetResolution checks
return proper error conditions if arguments are invalid.
Linus Heckemann [Tue, 5 May 2020 06:35:19 +0000 (08:35 +0200)]
shadow_server: allow specifying IP addresses to listen on (#6050)
* shadow_server: allow specifying IP addresses to listen on
This allows using IPv6 as well as listening only on specific
interfaces. Additionally, it enables listening on local and TCP
sockets simultaneously.
* listener: log address with square brackets
This disambiguates IPv6 addresses.
* shadow_server: check error on each socket binding
* Refactored shadow /bind-address for 2.0 compiatibility.
* Made /ipc-socket and /bind-address incompatible arguments.
* Fixed shadow /bind-address handling and description
* Allow multiple bind addresses for shadow server.
Co-authored-by: akallabeth <akallabeth@posteo.net>
akallabeth [Sat, 25 Apr 2020 06:34:08 +0000 (08:34 +0200)]
Fixed compiler warnings for usb channel
akallabeth [Sat, 25 Apr 2020 06:33:45 +0000 (08:33 +0200)]
Fixed index out of bound access in update_glyph_offset
akallabeth [Sat, 25 Apr 2020 06:26:37 +0000 (08:26 +0200)]
Unified INLINE definition
Armin Novak [Mon, 4 May 2020 15:32:55 +0000 (17:32 +0200)]
Silence SCARD_E_TIMEOUT warnings
These occur quite often for status calls, so reduce log verbosity.
akallabeth [Wed, 29 Apr 2020 14:01:52 +0000 (16:01 +0200)]
Fixed various input buffer length checks in URBDRC
Thanks to hac425 CVE-2020-11039
akallabeth [Wed, 29 Apr 2020 13:55:51 +0000 (15:55 +0200)]
Fixed int overflow in smartcard_ndr_read
Thanks to hac425
akallabeth [Wed, 29 Apr 2020 13:49:52 +0000 (15:49 +0200)]
Fixed int overflow in msusb_mspipes_read
Thanks to hac425
akallabeth [Wed, 29 Apr 2020 13:49:09 +0000 (15:49 +0200)]
Fixed int overflow in printer_write_setting
Thanks to hac425
akallabeth [Wed, 29 Apr 2020 13:48:43 +0000 (15:48 +0200)]
Fixed int overflow in PresentationContext_new
Thanks to hac425 CVE-2020-11038
akallabeth [Thu, 23 Apr 2020 09:52:16 +0000 (11:52 +0200)]
Fixed #6112: Segfault in update_decompress_brush
The iterators need to be signed for the loop check to work.
akallabeth [Tue, 21 Apr 2020 08:46:16 +0000 (10:46 +0200)]
Fixed oob read in rfx_process_message_tileset
Check input data length
Thanks to hac425 CVE-2020-11043
akallabeth [Tue, 21 Apr 2020 08:35:17 +0000 (10:35 +0200)]
Fixed oob read in clear_decompress_subcode_rlex
Fixed length checks before stream read.
Thanks to hac425 CVE-2020-11040
akallabeth [Tue, 21 Apr 2020 08:25:47 +0000 (10:25 +0200)]
Fixed oob read in rdpsnd_recv_wave2_pdu
Check format index before using it.
Thanks to hac425 CVE-2020-11041
akallabeth [Tue, 21 Apr 2020 08:23:04 +0000 (10:23 +0200)]
Fixed oob read in update_recv
properly use update_type_to_string to print update type.
Thanks to hac425 CVE-2020-11019
akallabeth [Tue, 21 Apr 2020 08:18:22 +0000 (10:18 +0200)]
update_decompress_brush: explicit output length checks
The output length was just assumed to be >= 256 bytes, with this
commit it is explicitly checked.
akallabeth [Mon, 20 Apr 2020 14:02:02 +0000 (16:02 +0200)]
Fixed clipboard 'called with invalid type' warning
akallabeth [Mon, 20 Apr 2020 13:26:33 +0000 (15:26 +0200)]
Fix short format name configuration and format list return.
akallabeth [Wed, 15 Apr 2020 15:49:41 +0000 (17:49 +0200)]
Fixed possible int overflow.
akallabeth [Wed, 15 Apr 2020 15:47:42 +0000 (17:47 +0200)]
Remove unnecessary cast.
akallabeth [Wed, 15 Apr 2020 15:27:40 +0000 (17:27 +0200)]
Fix oob read in msusb_msconfig_read
akallabeth [Wed, 15 Apr 2020 15:21:46 +0000 (17:21 +0200)]
Fixed oob read in irp_write and similar
akallabeth [Wed, 15 Apr 2020 15:09:22 +0000 (17:09 +0200)]
Fixed oob read in parallel_process_irp_create
akallabeth [Wed, 15 Apr 2020 15:06:35 +0000 (17:06 +0200)]
Fixed oob read in parallel_process_irp_read
akallabeth [Wed, 15 Apr 2020 15:05:10 +0000 (17:05 +0200)]
Fixed oob read in parallel_process_irp_write
akallabeth [Wed, 15 Apr 2020 15:03:05 +0000 (17:03 +0200)]
Fixed oob read in ntlm_read_AuthenticateMessage
akallabeth [Wed, 15 Apr 2020 15:02:33 +0000 (17:02 +0200)]
Fixed oob read in ntlm_read_ntlm_v2_response
akallabeth [Wed, 15 Apr 2020 14:48:50 +0000 (16:48 +0200)]
Fixed oob read in ntlm_read_NegotiateMessage
akallabeth [Wed, 15 Apr 2020 14:47:12 +0000 (16:47 +0200)]
Fixed oob read in cliprdr_read_format_list
akallabeth [Wed, 15 Apr 2020 14:41:52 +0000 (16:41 +0200)]
Fixed cliprdr_server_receive_capabilities
Thanks to hac425 CVE-2020-11017, CVE-2020-11018
Armin Novak [Sat, 11 Apr 2020 09:55:11 +0000 (11:55 +0200)]
Added expert settings /tune and /tune-list
akallabeth [Sat, 25 Apr 2020 06:01:40 +0000 (08:01 +0200)]
Fixed #6122: Allow SSL server and client purpose
akallabeth [Fri, 1 May 2020 08:26:18 +0000 (10:26 +0200)]
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.
qarmin [Fri, 1 May 2020 18:11:03 +0000 (20:11 +0200)]
Don't allow to overflow dev_array array
qarmin [Fri, 1 May 2020 17:25:22 +0000 (19:25 +0200)]
Fixed copy paste error in MessagePipe.c
Sascha Wessel [Sun, 26 Apr 2020 06:57:22 +0000 (08:57 +0200)]
libuwac/input: Fix memory leak
`create_pointer_buffer()` allocates memory with `mmap` and never frees it.
Adding a corresponding `munmap` fixes this issue.
akallabeth [Sat, 25 Apr 2020 12:03:13 +0000 (14:03 +0200)]
Fixed #6121: Use correct destination color format
akallabeth [Tue, 28 Apr 2020 06:34:38 +0000 (08:34 +0200)]
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.
Sascha Wessel [Sun, 26 Apr 2020 05:34:52 +0000 (07:34 +0200)]
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.
Sascha Wessel [Sun, 26 Apr 2020 05:53:06 +0000 (07:53 +0200)]
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.
Lukas Fink [Fri, 24 Apr 2020 17:06:24 +0000 (19:06 +0200)]
Fixes null dereference bug
Avoids a null function pointer dereference that happened, when
freerdp_urbdrc_client_subsystem_entry failed before invoking
udevman_load_interface.
Lukas Fink [Fri, 24 Apr 2020 16:46:37 +0000 (18:46 +0200)]
Implemented udevman->hotplug_vid_pids as wArrayList
Lukas Fink [Thu, 23 Apr 2020 23:16:10 +0000 (01:16 +0200)]
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:id:<vid+pids>,addr:<bus+addrs>
The dev option still works like before: /usb:id,dev:<vid+pids> or
/usb:addr,dev:<bus+addrs>
Lukas Fink [Thu, 23 Apr 2020 16:29:53 +0000 (18:29 +0200)]
Added hotplug to /usb:id,dev option
Devices specified with the /usb:id,dev command line option are now
detected by the hotplug callback.