platform/upstream/freerdp.git
4 years agoRewritten rdp_recv_logon_info_v2 to remove unaligned access
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)

4 years agoRewritten check to satisfy BehaviouralSanitizer
akallabeth [Fri, 15 May 2020 15:18:57 +0000 (17:18 +0200)]
Rewritten check to satisfy BehaviouralSanitizer

(cherry picked from commit 14829de866b43e7f2740b46f0c736b9adf5067eb)

4 years agoFixed BehaviourSanitizer warning in rdp parser
akallabeth [Fri, 15 May 2020 14:55:58 +0000 (16:55 +0200)]
Fixed BehaviourSanitizer warning in rdp parser

(cherry picked from commit 771332c04e2dbad964d0cb11a86ff561e792bc35)

4 years agoFixed memory leak in NTLM test
akallabeth [Fri, 15 May 2020 14:38:42 +0000 (16:38 +0200)]
Fixed memory leak in NTLM test

(cherry picked from commit 135458cf27160d50e6294f87ef80f27f1f65d319)

4 years agoFixed undefined behaviour
akallabeth [Fri, 15 May 2020 14:30:02 +0000 (16:30 +0200)]
Fixed undefined behaviour

(cherry picked from commit c15929d821ce99aa8c1069f790f4addbe9439593)

4 years agoFixed undefined behaviour in primitives shift
akallabeth [Fri, 15 May 2020 14:04:28 +0000 (16:04 +0200)]
Fixed undefined behaviour in primitives shift

(cherry picked from commit 436bd3dbb103c7c49e51ffb1cafad6f25ab05d66)

4 years agoFixed undefined behaviour in ncrush
akallabeth [Fri, 15 May 2020 13:43:33 +0000 (15:43 +0200)]
Fixed undefined behaviour in ncrush

(cherry picked from commit 83137d2a1bb732fbea2f20778924a50a79f63fef)

4 years agoFixed undefined behaviour in rfx decoder
akallabeth [Fri, 15 May 2020 13:40:12 +0000 (15:40 +0200)]
Fixed undefined behaviour in rfx decoder

(cherry picked from commit ef611d34d61c6590429c17db5c97f0a9a33147e8)

4 years agoFixed UndefinedBehaviour in planar left shift
akallabeth [Fri, 15 May 2020 13:34:42 +0000 (15:34 +0200)]
Fixed UndefinedBehaviour in planar left shift

(cherry picked from commit 328691c46597c194f01a77a9d33d58b2faa88c9d)

4 years agoFixed BehaviourSanitizer warnings in streams.
akallabeth [Fri, 15 May 2020 13:04:05 +0000 (15:04 +0200)]
Fixed BehaviourSanitizer  warnings in streams.

(cherry picked from commit 66ea3d0579841b468684e05936fabf654727e720)

4 years agoFixed memory leak in ini parser and test functions.
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)

4 years agoRefactored settings clone/free, extended tests
akallabeth [Fri, 15 May 2020 10:22:37 +0000 (12:22 +0200)]
Refactored settings clone/free, extended tests

(cherry picked from commit 773ad6e9791844ca3ccdc40d378a37fc0238ef0a)

4 years agoFixed BehaviorSanitizer warnings.
akallabeth [Fri, 15 May 2020 09:20:24 +0000 (11:20 +0200)]
Fixed BehaviorSanitizer warnings.

(cherry picked from commit b5dfc15183b752a5d9c6da01225ed281b20001cf)

4 years agoFixed BehaviorSanitizer warnings
akallabeth [Fri, 15 May 2020 09:16:50 +0000 (11:16 +0200)]
Fixed BehaviorSanitizer warnings

(cherry picked from commit 0d28390319025c86e7e9d7cc776d88ef24f9db0e)

4 years agoAlways require aligned memory for interleaved codec.
akallabeth [Fri, 15 May 2020 09:16:18 +0000 (11:16 +0200)]
Always require aligned memory for interleaved codec.

(cherry picked from commit 20c11fb7178462a8ba36b4fdbfb3e2a03197356f)

4 years agoFixed BehaviorSanitizer warnings
akallabeth [Fri, 15 May 2020 09:15:21 +0000 (11:15 +0200)]
Fixed BehaviorSanitizer warnings

(cherry picked from commit afdd81dab5c484ab95b977a0d71f3809c8fa89a3)

4 years agoFixed BehaviorSantizer warnings.
akallabeth [Fri, 15 May 2020 09:14:44 +0000 (11:14 +0200)]
Fixed BehaviorSantizer warnings.

(cherry picked from commit 7a509fe27749e006a9a58854c4abb4522fc58c81)

4 years agoFixed GHSL-2020-100: oob read in ntlm_read_ChallengeMessage
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)

4 years agoFixed typos (Otherweise)
Kentaro Hayashi [Sun, 10 May 2020 07:35:20 +0000 (16:35 +0900)]
Fixed typos (Otherweise)

Otherweise ->
Otherw ise
      ^

(cherry picked from commit 148f3c675d02da2c7f19b3099ba8792f5594416b)

4 years agoimprove RFX DWT algorithm
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)

4 years agofix typo in GFX logs
Vladyslav Hordiienko [Wed, 6 May 2020 08:05:04 +0000 (11:05 +0300)]
fix typo in GFX logs

(cherry picked from commit a79635fd1c9e12c4ea543f461f03c0dd83d5e063)

4 years agoWindows Authentication - Then launced with username argument prefill the name in...
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)

4 years agoRefactored sam functions to utilize strtok_s
akallabeth [Mon, 18 May 2020 10:07:59 +0000 (12:07 +0200)]
Refactored sam functions to utilize strtok_s

(cherry picked from commit ddb388e1527de69e47d55068d8a318ef270fc4a0)

4 years agoReplaced strtok with strtok_s
akallabeth [Mon, 18 May 2020 09:18:55 +0000 (11:18 +0200)]
Replaced strtok with strtok_s

(cherry picked from commit 7890833af8a891765a475bd7ae2a756aeddd4977)

4 years agoFixed NULL access of context struct on screen draw
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)

4 years agoExtend lifetime of streampool in drdynvc
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)

4 years agoFixed sample client resource cleanup
akallabeth [Mon, 18 May 2020 08:26:09 +0000 (10:26 +0200)]
Fixed sample client resource cleanup

(cherry picked from commit e716f823115463fc66d94dd6c044ba7c47c43fe1)

4 years agochange use of strtok to strtok_s
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)

4 years agoFixed drdynvc_send stream release
akallabeth [Tue, 12 May 2020 14:34:01 +0000 (16:34 +0200)]
Fixed drdynvc_send stream release

(cherry picked from commit a497e78d37b63f8f342be56e1732c5a891b5ba0d)

4 years agoFixed DestroyListener arguments and call order
akallabeth [Tue, 12 May 2020 12:26:45 +0000 (14:26 +0200)]
Fixed DestroyListener arguments and call order

(cherry picked from commit 0e08727d4ecff2777884a23bc33961f63d52465e)

4 years agoFixed #6148: multiple ceritificate purposes
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)

4 years agoserver: proxy: use peer load balance info when host is fetched from config
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)

4 years agoDestroy channel listeners on terminate
akallabeth [Tue, 12 May 2020 08:54:07 +0000 (10:54 +0200)]
Destroy channel listeners on terminate

(cherry picked from commit 2f5e5359f60c26a2de244cd6d9f7957b039cd121)

4 years agodrdynvc channel cleanup.
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)

4 years agoEnsure all NLA structs are freed up
akallabeth [Tue, 12 May 2020 07:09:13 +0000 (09:09 +0200)]
Ensure all NLA structs are freed up

(cherry picked from commit 477ad675f31a1965833304f79406599e0ad97b82)

4 years agoFixed #6157: Reset cups instance on disconnect.
akallabeth [Tue, 12 May 2020 06:46:06 +0000 (08:46 +0200)]
Fixed #6157: Reset cups instance on disconnect.

(cherry picked from commit 13906f3ec629af4b2b2aeb5b92845f99b7bf7747)

4 years agoFixed #6163: Force linking to objective C runtime
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)

4 years agoFixed #6156: Enforce synchronized encrypt count
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)

4 years agoFixed #6162: Clipboard temporary path length limit
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)

4 years agoserver: proxy: Register signal handler after modules finished loading.
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)

4 years agoserver: proxy: print version and buildconfig on startup
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)

4 years agoMerge pull request #6152 from akallabeth/stable-backports 2.1.0
Bernhard Miklautz [Fri, 8 May 2020 09:40:17 +0000 (11:40 +0200)]
Merge pull request #6152 from akallabeth/stable-backports

Stable backports

4 years ago2.1.0 release version.
akallabeth [Tue, 5 May 2020 05:50:40 +0000 (07:50 +0200)]
2.1.0 release version.

4 years agoChangelog for 2.1.0
akallabeth [Tue, 5 May 2020 09:46:19 +0000 (11:46 +0200)]
Changelog for 2.1.0

4 years agoFixed integer overflow in winpr_image_bitmap_read_buffer
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)

4 years agoChanged smartcard no reader log message level to info
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)

4 years agoFixed wrong error return from drdynvc_write_data
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)

4 years agoSilence valgrind in rdp_read_header
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)

4 years agoSilence valgrind in unicode conversion functions
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)

4 years agoIncreased uwac library version.
akallabeth [Thu, 7 May 2020 09:13:06 +0000 (11:13 +0200)]
Increased uwac library version.

(cherry picked from commit 58b313e6d95d96f942b451c9b635fbc70fe415cf)

4 years agoCreate data copy in case of dynamic sound channel.
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)

4 years agoFixed warning messages for RDP file options
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)

4 years agoUse dedicated sound decoder thread.
akallabeth [Tue, 5 May 2020 11:07:15 +0000 (13:07 +0200)]
Use dedicated sound decoder thread.

4 years agoFixed primary monitor index for wayland fullscreen
akallabeth [Tue, 5 May 2020 08:31:26 +0000 (10:31 +0200)]
Fixed primary monitor index for wayland fullscreen

4 years agoFixed UwacDisplayGetOutput and UwacOutputGetResolution checks
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.

4 years agoshadow_server: allow specifying IP addresses to listen on (#6050)
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>
4 years agoFixed compiler warnings for usb channel
akallabeth [Sat, 25 Apr 2020 06:34:08 +0000 (08:34 +0200)]
Fixed compiler warnings for usb channel

4 years agoFixed index out of bound access in update_glyph_offset
akallabeth [Sat, 25 Apr 2020 06:33:45 +0000 (08:33 +0200)]
Fixed index out of bound access in update_glyph_offset

4 years agoUnified INLINE definition
akallabeth [Sat, 25 Apr 2020 06:26:37 +0000 (08:26 +0200)]
Unified INLINE definition

4 years agoSilence SCARD_E_TIMEOUT warnings
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.

4 years agoFixed various input buffer length checks in URBDRC
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

4 years agoFixed int overflow in smartcard_ndr_read
akallabeth [Wed, 29 Apr 2020 13:55:51 +0000 (15:55 +0200)]
Fixed int overflow in smartcard_ndr_read

Thanks to hac425

4 years agoFixed int overflow in msusb_mspipes_read
akallabeth [Wed, 29 Apr 2020 13:49:52 +0000 (15:49 +0200)]
Fixed int overflow in msusb_mspipes_read

Thanks to hac425

4 years agoFixed int overflow in printer_write_setting
akallabeth [Wed, 29 Apr 2020 13:49:09 +0000 (15:49 +0200)]
Fixed int overflow in printer_write_setting

Thanks to hac425

4 years agoFixed int overflow in PresentationContext_new
akallabeth [Wed, 29 Apr 2020 13:48:43 +0000 (15:48 +0200)]
Fixed int overflow in PresentationContext_new

Thanks to hac425 CVE-2020-11038

4 years agoFixed #6112: Segfault in update_decompress_brush
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.

4 years agoFixed oob read in rfx_process_message_tileset
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

4 years agoFixed oob read in clear_decompress_subcode_rlex
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

4 years agoFixed oob read in rdpsnd_recv_wave2_pdu
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

4 years agoFixed oob read in update_recv
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

4 years agoupdate_decompress_brush: explicit output length checks
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.

4 years agoFixed clipboard 'called with invalid type' warning
akallabeth [Mon, 20 Apr 2020 14:02:02 +0000 (16:02 +0200)]
Fixed clipboard 'called with invalid type' warning

4 years agoFix short format name configuration and format list return.
akallabeth [Mon, 20 Apr 2020 13:26:33 +0000 (15:26 +0200)]
Fix short format name configuration and format list return.

4 years agoFixed possible int overflow.
akallabeth [Wed, 15 Apr 2020 15:49:41 +0000 (17:49 +0200)]
Fixed possible int overflow.

4 years agoRemove unnecessary cast.
akallabeth [Wed, 15 Apr 2020 15:47:42 +0000 (17:47 +0200)]
Remove unnecessary cast.

4 years agoFix oob read in msusb_msconfig_read
akallabeth [Wed, 15 Apr 2020 15:27:40 +0000 (17:27 +0200)]
Fix oob read in msusb_msconfig_read

4 years agoFixed oob read in irp_write and similar
akallabeth [Wed, 15 Apr 2020 15:21:46 +0000 (17:21 +0200)]
Fixed oob read in irp_write and similar

4 years agoFixed oob read in parallel_process_irp_create
akallabeth [Wed, 15 Apr 2020 15:09:22 +0000 (17:09 +0200)]
Fixed oob read in parallel_process_irp_create

4 years agoFixed oob read in parallel_process_irp_read
akallabeth [Wed, 15 Apr 2020 15:06:35 +0000 (17:06 +0200)]
Fixed oob read in parallel_process_irp_read

4 years agoFixed oob read in parallel_process_irp_write
akallabeth [Wed, 15 Apr 2020 15:05:10 +0000 (17:05 +0200)]
Fixed oob read in parallel_process_irp_write

4 years agoFixed oob read in ntlm_read_AuthenticateMessage
akallabeth [Wed, 15 Apr 2020 15:03:05 +0000 (17:03 +0200)]
Fixed oob read in ntlm_read_AuthenticateMessage

4 years agoFixed oob read in ntlm_read_ntlm_v2_response
akallabeth [Wed, 15 Apr 2020 15:02:33 +0000 (17:02 +0200)]
Fixed oob read in ntlm_read_ntlm_v2_response

4 years agoFixed oob read in ntlm_read_NegotiateMessage
akallabeth [Wed, 15 Apr 2020 14:48:50 +0000 (16:48 +0200)]
Fixed oob read in ntlm_read_NegotiateMessage

4 years agoFixed oob read in cliprdr_read_format_list
akallabeth [Wed, 15 Apr 2020 14:47:12 +0000 (16:47 +0200)]
Fixed oob read in cliprdr_read_format_list

4 years agoFixed cliprdr_server_receive_capabilities
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

4 years agoAdded expert settings /tune and /tune-list
Armin Novak [Sat, 11 Apr 2020 09:55:11 +0000 (11:55 +0200)]
Added expert settings /tune and /tune-list

4 years agoFixed #6122: Allow SSL server and client purpose
akallabeth [Sat, 25 Apr 2020 06:01:40 +0000 (08:01 +0200)]
Fixed #6122: Allow SSL server and client purpose

4 years agoFixed #6087: Inconsistend scroll on wayland
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.

4 years agoDon't allow to overflow dev_array array
qarmin [Fri, 1 May 2020 18:11:03 +0000 (20:11 +0200)]
Don't allow to overflow dev_array array

4 years agoFixed copy paste error in MessagePipe.c
qarmin [Fri, 1 May 2020 17:25:22 +0000 (19:25 +0200)]
Fixed copy paste error in MessagePipe.c

4 years agolibuwac/input: Fix memory leak
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.

4 years agoFixed #6121: Use correct destination color format
akallabeth [Sat, 25 Apr 2020 12:03:13 +0000 (14:03 +0200)]
Fixed #6121: Use correct destination color format

4 years agoWorkaround #6072: FFMPEG AAC encoding graded experimental
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.

4 years agowlfreerdp/cliprdr: Initialize pointer before use
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.

4 years agolibuwac/window: Fix memory leak / SIGBUS
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.

4 years agoFixes null dereference bug
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.

4 years agoImplemented udevman->hotplug_vid_pids as wArrayList
Lukas Fink [Fri, 24 Apr 2020 16:46:37 +0000 (18:46 +0200)]
Implemented udevman->hotplug_vid_pids as wArrayList

4 years agoAdded ability to add usb devs via id and addr simultaneously
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>

4 years agoAdded hotplug to /usb:id,dev option
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.

4 years agoFixed /usb:dev command line option
Lukas Fink [Thu, 23 Apr 2020 03:13:13 +0000 (05:13 +0200)]
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.