platform/upstream/freerdp.git
3 years agonsc: Fix memory leak
Pascal Nowack [Fri, 26 Jun 2020 14:33:19 +0000 (16:33 +0200)]
nsc: Fix memory leak

Fixes the following memory leak:

==115716== 16,662,960 bytes in 459 blocks are definitely lost in loss record 3,504 of 3,504
==115716==    at 0x48396AF: malloc (vg_replace_malloc.c:306)
==115716==    by 0x4C6A4E2: nsc_context_initialize_encode (nsc_encode.c:77)
==115716==    by 0x4C6A4E2: nsc_compose_message (nsc_encode.c:497)

(cherry picked from commit 9bd457405095c94a24175bc54bd99947fcf6a33d)

3 years agoFixed creating release zip from folder
Armin Novak [Mon, 22 Jun 2020 10:57:26 +0000 (12:57 +0200)]
Fixed creating release zip from folder

(cherry picked from commit 16350dcdda73767c7012a2c8f09405944b39d09a)

3 years agoFixed #6298: Mask CACHED_BRUSH when checking brush style
Armin Novak [Tue, 23 Jun 2020 07:24:35 +0000 (09:24 +0200)]
Fixed #6298: Mask CACHED_BRUSH when checking brush style

(cherry picked from commit ce1a9d8d1969ecbb4d24b9f4812654638a44abc2)

3 years agoFixed spelling, print errors to stderr
Armin Novak [Tue, 23 Jun 2020 07:32:19 +0000 (09:32 +0200)]
Fixed spelling, print errors to stderr

(cherry picked from commit b50525d1fb47aa6b07450c10f8ad7b5245e523fa)

3 years agoFixed bug with creating release source_version
Armin Novak [Tue, 23 Jun 2020 07:30:08 +0000 (09:30 +0200)]
Fixed bug with creating release source_version

(cherry picked from commit 5490ce50992716d9230bd3ac84b3e819f1c5649f)

3 years agoMerge pull request #6285 from akallabeth/stable-backports2 2.1.2
Martin Fleisz [Mon, 22 Jun 2020 10:44:36 +0000 (12:44 +0200)]
Merge pull request #6285 from akallabeth/stable-backports2

Stable backports

3 years agoUpdated versions to 2.1.2
Armin Novak [Mon, 22 Jun 2020 10:26:08 +0000 (12:26 +0200)]
Updated versions to 2.1.2

3 years agoAdded changelog for 2.1.2
Armin Novak [Mon, 22 Jun 2020 09:58:07 +0000 (11:58 +0200)]
Added changelog for 2.1.2

(cherry picked from commit 5dc50f64183755862cca75cf151933c42fabbb90)

3 years agoFixed possible integer overflow in crypto_rsa_common
akallabeth [Mon, 15 Jun 2020 06:57:21 +0000 (08:57 +0200)]
Fixed possible integer overflow in crypto_rsa_common

Thanks @anticomputer for pointing this out

(cherry picked from commit 02c5ec66e5b47fe4cf2fc96e2cd387a18e3f2bb6)

3 years agoFixed fallback to getlogin for android
akallabeth [Tue, 2 Jun 2020 12:41:37 +0000 (14:41 +0200)]
Fixed fallback to getlogin for android

(cherry picked from commit caff01877d4df5f25a983b3aa5e57dde6a16a62f)

3 years agoRemoved duplicate semicolon
akallabeth [Tue, 2 Jun 2020 11:19:26 +0000 (13:19 +0200)]
Removed duplicate semicolon

(cherry picked from commit 308c2c3544763873a5bea4d18c72c9f62e1584cb)

3 years agoFixed OOB read in ntlm_av_pair_get
akallabeth [Tue, 2 Jun 2020 10:26:40 +0000 (12:26 +0200)]
Fixed OOB read in ntlm_av_pair_get

CVE-2020-11097 thanks to @antonio-morales for finding this.

(cherry picked from commit 58a3122250d54de3a944c487776bcd4d1da4721e)

3 years agoFixed broken const variable.
akallabeth [Tue, 2 Jun 2020 09:33:48 +0000 (11:33 +0200)]
Fixed broken const variable.

(cherry picked from commit 1c6a6923f87dcfb295c508963f21bebbbc4292ae)

3 years agoReset freed HGDI_DC
akallabeth [Tue, 2 Jun 2020 07:28:47 +0000 (09:28 +0200)]
Reset freed HGDI_DC

CVE-2020-4031 thanks to @antonio-morales for finding this.

(cherry picked from commit f753c25ad3d5dae7890fe73cfb3c091c015d97ed)

3 years agoFixed out of bound read in RLEDECOMPRESS
akallabeth [Tue, 2 Jun 2020 06:45:09 +0000 (08:45 +0200)]
Fixed out of bound read in RLEDECOMPRESS

CVE-2020-4033 thanks to @antonio-morales for finding this.

(cherry picked from commit 0a98c450c58ec150e44781c89aa6f8e7e0f571f5)

3 years agoFixed OOB read in update_recv_secondary_order
akallabeth [Wed, 27 May 2020 06:10:11 +0000 (08:10 +0200)]
Fixed OOB read in update_recv_secondary_order

CVE-2020-4032 thanks to @antonio-morales for finding this.

(cherry picked from commit e7bffa64ef5ed70bac94f823e2b95262642f5296)

3 years agoFixed TrioParse and trio_length limts.
akallabeth [Tue, 26 May 2020 14:12:58 +0000 (16:12 +0200)]
Fixed TrioParse and trio_length limts.

CVE-2020-4030 thanks to @antonio-morales for finding this.

(cherry picked from commit 05cd9ea2290d23931f615c1b004d4b2e69074e27)

3 years agoFixed OOB read in update_read_cache_bitmap_v3_order
akallabeth [Tue, 26 May 2020 05:50:55 +0000 (07:50 +0200)]
Fixed OOB read in update_read_cache_bitmap_v3_order

CVE-2020-11096 thanks @antonio-morales for finding this.

(cherry picked from commit b8beb55913471952f92770c90c372139d78c16c0)

3 years agoFixed invalid access in update_recv_primary_order
akallabeth [Tue, 26 May 2020 05:28:33 +0000 (07:28 +0200)]
Fixed invalid access in update_recv_primary_order

CVE-2020-11095 thanks @antonio-morales for finding this.

(cherry picked from commit 733ee3208306b1ea32697b356c0215180fc3f049)

3 years agoUse localtime_s on windows
akallabeth [Mon, 25 May 2020 12:20:23 +0000 (14:20 +0200)]
Use localtime_s on windows

(cherry picked from commit c3a1ed780cc4aed639e3391d7cafb9edc9dc623c)

3 years agoReplaced gmtime with gmtime_r
akallabeth [Mon, 25 May 2020 12:07:31 +0000 (14:07 +0200)]
Replaced gmtime with gmtime_r

(cherry picked from commit a45afe9db77a19e5a177fe1dc3e85119013f9587)

3 years agoFixed codition with side effects
akallabeth [Mon, 25 May 2020 12:04:17 +0000 (14:04 +0200)]
Fixed codition with side effects

(cherry picked from commit 1a02af5a12b400fcb6ad121a0a71e4440c2e9152)

3 years agoFixed pcap cleanup
akallabeth [Mon, 25 May 2020 12:03:35 +0000 (14:03 +0200)]
Fixed pcap cleanup

(cherry picked from commit 3ac7bb5d6a743b19e8686410d5ec6dcf74869ebe)

3 years agoFixed double free
akallabeth [Mon, 25 May 2020 12:03:12 +0000 (14:03 +0200)]
Fixed double free

(cherry picked from commit 6d86e20e1e7caaab4f0c7f89e36d32914dbccc52)

3 years agoReplaced getlogin with getlogin_r
akallabeth [Mon, 25 May 2020 12:01:23 +0000 (14:01 +0200)]
Replaced getlogin with getlogin_r

(cherry picked from commit 36478d3d0b3d7fa378a875f60170a08e94747226)

3 years agoReplaced localtime with localtime_r
akallabeth [Mon, 25 May 2020 11:56:24 +0000 (13:56 +0200)]
Replaced localtime with localtime_r

(cherry picked from commit 240fdd07b123594a1f7a460de7e6877b1963d09e)

3 years agoFixed memory leaks in ntlm
akallabeth [Mon, 25 May 2020 08:05:57 +0000 (10:05 +0200)]
Fixed memory leaks in ntlm

(cherry picked from commit 057b6df4aebbe8e739139087dfaab15104ca5ba7)

3 years agoFixed Out-of-bound read in glyph_cache_put
akallabeth [Mon, 25 May 2020 07:42:02 +0000 (09:42 +0200)]
Fixed Out-of-bound read in glyph_cache_put

CVE-2020-11098 thanks to @antonio-morales for finding this.

(cherry picked from commit c0fd449ec0870b050d350d6d844b1ea6dad4bc7d)

3 years agoFixed OOB Read in license_read_new_or_upgrade_license_packet
akallabeth [Mon, 25 May 2020 07:37:48 +0000 (09:37 +0200)]
Fixed OOB Read in license_read_new_or_upgrade_license_packet

CVE-2020-11099 thanks to @antonio-morales for finding this.

(cherry picked from commit 6ade7b4cbfd71c54b3d724e8f2d6ac76a58e879a)

3 years agoRespect SECBUFFER_READONLY flag in NTLM EncryptMessage
Armin Novak [Wed, 17 Jun 2020 10:18:42 +0000 (12:18 +0200)]
Respect SECBUFFER_READONLY flag in NTLM EncryptMessage

(cherry picked from commit 8e45a2dd50d5db6ac6125e0f60e833b6c6c6ea1b)

3 years agoAdded missing SECBUFFER_READONLY flag in rpc_client_write_call
Armin Novak [Wed, 17 Jun 2020 10:10:33 +0000 (12:10 +0200)]
Added missing SECBUFFER_READONLY flag in rpc_client_write_call

(cherry picked from commit 0d80353bf30de860dcf86285c4e5e2770bc036f7)

3 years agoTSG improvements
Armin Novak [Wed, 17 Jun 2020 06:41:21 +0000 (08:41 +0200)]
TSG improvements

* Respect connection timeout during connect
* Better debug output
* Cleaned up data types,

(cherry picked from commit ff79636d3311269ec35fc1d6cc4246eef500ad5e)

3 years agoFixed missing lock during buffer submit.
akallabeth [Thu, 18 Jun 2020 06:42:24 +0000 (08:42 +0200)]
Fixed missing lock during buffer submit.

(cherry picked from commit c902f583d0911c1e8938c5f14f3f257eb9737745)

3 years agoRevert "winpr/library: Use RTLD_GLOBAL for dlopen"
Bernhard Miklautz [Tue, 16 Jun 2020 14:39:36 +0000 (16:39 +0200)]
Revert "winpr/library: Use RTLD_GLOBAL for dlopen"

Using RTLD_GLOBAL in LoadLibraryA introduces a different behavior than
expected.

This reverts commit d566e00258daffcb4c703afc3685e9a42ad01453.

(cherry picked from commit 529e30c273ba67e3924b9fe4419410888314d31f)

3 years agofix [client channels]: move exported API calls to client/common
Bernhard Miklautz [Tue, 16 Jun 2020 14:35:36 +0000 (16:35 +0200)]
fix [client channels]: move exported API calls to client/common

The functions mappedGeometryRef and mappedGeometryUnref are API
functions ([1]) but were implemented in the geometry channel.
In case FreeRDP was built with BUILTIN_CHANNELS=OFF those functions
weren't available globally but used by the video channel.

Now the functions are fixed part of the freerdp-client library and
therefore available for all channels.

[1] exported in freerdp/client/geometry.h

Fixes #6236

(cherry picked from commit 1628939227fa82fa492f068f178f0cc0a42c518b)

3 years agoFixed double free for uwac buffers
akallabeth [Tue, 16 Jun 2020 11:54:12 +0000 (13:54 +0200)]
Fixed double free for uwac buffers

(cherry picked from commit 1bc48b058f013a8c88db2a1d7da2ad25dcd3bc4c)

3 years agoLock wayland buffer updates
akallabeth [Mon, 15 Jun 2020 13:49:21 +0000 (15:49 +0200)]
Lock wayland buffer updates

(cherry picked from commit 7361f75d11b77f998cf7dee08c8aa619df98754a)

3 years agoserver: proxy: cap plugin: fix var and func declaration
Kubistika [Wed, 3 Jun 2020 10:56:52 +0000 (13:56 +0300)]
server: proxy: cap plugin: fix var and func declaration

(cherry picked from commit 0cf764f170384b1f65aa4950f54c668f8212ac11)

3 years agoserver: proxy: implement session capture plugin
Kobi Mizrachi [Mon, 1 Jun 2020 06:37:53 +0000 (09:37 +0300)]
server: proxy: implement session capture plugin

(cherry picked from commit 19809bf338e5503a33664440d0de9313dca038a3)

3 years agowinpr: image: add API to construct bmp header
Kobi Mizrachi [Mon, 1 Jun 2020 06:33:12 +0000 (09:33 +0300)]
winpr: image: add API to construct bmp header

(cherry picked from commit 920acd4c0ee7f9112d77756b0c41474212446609)

3 years agoFixed compilation issue with shadow pam code
akallabeth [Tue, 16 Jun 2020 12:02:49 +0000 (14:02 +0200)]
Fixed compilation issue with shadow pam code

(cherry picked from commit e1e0f965e8636c587aea7762a94d611e193e07f3)

3 years agoFixed surface locking for shadow server.
akallabeth [Wed, 27 May 2020 08:01:04 +0000 (10:01 +0200)]
Fixed surface locking for shadow server.

(cherry picked from commit a38d6c53a62cdea302fbeb4e466bce22c006d20c)

3 years agoDo not remove transfer data on usb cancel transfer
Armin Novak [Wed, 3 Jun 2020 06:24:17 +0000 (08:24 +0200)]
Do not remove transfer data on usb cancel transfer

(cherry picked from commit a5e2d62e48619d5502f5334d431ee7d66ae9e4aa)

3 years agoFixed double free in urb_isoch_transfer_cb
Armin Novak [Wed, 3 Jun 2020 06:37:45 +0000 (08:37 +0200)]
Fixed double free in urb_isoch_transfer_cb

(cherry picked from commit ef4de12887486857f7eec37ef93df692b2ecedf0)

3 years agoFixed sign compare warnings with constants.
Armin Novak [Wed, 3 Jun 2020 07:53:18 +0000 (09:53 +0200)]
Fixed sign compare warnings with constants.

(cherry picked from commit 5ec66cc6c79dadf4c3426060d5bb30ddb360f292)

3 years agofix +unmap-buttons option having the opposite effect
makki_d [Thu, 4 Jun 2020 09:22:55 +0000 (18:22 +0900)]
fix +unmap-buttons option having the opposite effect

(cherry picked from commit 4607a2766afd2875696b7b7febd9dc63f778b8d7)

3 years agoImprove X11 shadow authentication reason failure log
akallabeth [Wed, 27 May 2020 09:53:28 +0000 (11:53 +0200)]
Improve X11 shadow authentication reason failure log

(cherry picked from commit e66ee477c00b91cddc228adaf1577be602e4f725)

3 years agoFix usage of DsMakeSpn with IP address hostnames
Martin Fleisz [Mon, 15 Jun 2020 13:06:02 +0000 (15:06 +0200)]
Fix usage of DsMakeSpn with IP address hostnames

(cherry picked from commit 4e7b60b0028f5d33139065fb965c5cd9d2f6ec1d)

3 years agoMessageQueue write time to current message not the next
Patrick Chin [Mon, 8 Jun 2020 18:17:35 +0000 (19:17 +0100)]
MessageQueue write time to current message not the next

(cherry picked from commit ea4df3f91a63c17f6a9bbf8d1b54f462004a992c)

3 years agoFixed #6267: adjust write_pixel_16 endian handling
akallabeth [Mon, 8 Jun 2020 05:09:07 +0000 (07:09 +0200)]
Fixed #6267: adjust write_pixel_16 endian handling

(cherry picked from commit 51d3e07c8a4bca32bf82538075e4518b63e8ed4d)

3 years agouwac: don't try to use O_TMPFILE on FreeBSD
Kyle Evans [Mon, 8 Jun 2020 04:13:58 +0000 (23:13 -0500)]
uwac: don't try to use O_TMPFILE on FreeBSD

Currently, this sets an invalid open flag and attempts to open(), which
will fail.  Instead of doing that, don't try to define O_TMPFILE where
such a definition can't exist and force the fallback rather than making
an always-fail open() call.

(cherry picked from commit 082ddb3d2bd068536c17a4dbddcafd465ffcba3a)

3 years agodrdynvc: client: fix #6252 use-after-free
Kubistika [Wed, 3 Jun 2020 16:45:18 +0000 (19:45 +0300)]
drdynvc: client: fix #6252 use-after-free

(cherry picked from commit 6ed765c96052c65f16fb1964705bd5c894b51b78)

3 years agoFixed formatting.
akallabeth [Thu, 4 Jun 2020 05:44:08 +0000 (07:44 +0200)]
Fixed formatting.

(cherry picked from commit d1b310d970592226b2f0a70710ad3ae3da61c4bc)

3 years agosmartcard: Teoretical fix of uninitialized values
Ondrej Holy [Wed, 3 Jun 2020 11:03:11 +0000 (13:03 +0200)]
smartcard: Teoretical fix of uninitialized values

This tries to fixes the following defects reported by covscan tool:
 - channels/smartcard/client/smartcard_operations.c:958: uninit_use_in_call: Using uninitialized value "ret.cReaders" when calling "smartcard_pack_locate_cards_return".
 - channels/smartcard/client/smartcard_operations.c:932: uninit_use_in_call: Using uninitialized value "ret.cReaders" when calling "smartcard_pack_locate_cards_return".

But I am not sure about it...

(cherry picked from commit 53459883529bf659488c4da81c30707ff3662820)

3 years agosmartcard: Fix usage of uninitialized values
Ondrej Holy [Wed, 3 Jun 2020 10:28:32 +0000 (12:28 +0200)]
smartcard: Fix usage of uninitialized values

This fixes the following defect reported by covscan tool:
 - channels/smartcard/client/smartcard_pack.c:942: uninit_use_in_call: Using uninitialized value "tmp" when calling "ConvertFromUnicode".
 - channels/smartcard/client/smartcard_pack.c:894: uninit_use_in_call: Using uninitialized value "tmp" when calling "ConvertFromUnicode".
 - channels/smartcard/client/smartcard_pack.c:475: uninit_use_in_call: Using uninitialized value "tmp" when calling "ConvertFromUnicode".

(cherry picked from commit e70e25715f89aac823281d7c0674d2387f70f8a6)

3 years agowlfreerdp: Fix array overrun
Ondrej Holy [Wed, 3 Jun 2020 10:03:44 +0000 (12:03 +0200)]
wlfreerdp: Fix array overrun

This fixes the following defects reported by covscan tool:
 - client/Wayland/wlf_input.c:251: overrun-local: Overrunning array "contacts" of 10 32-byte elements at element index 10 (byte offset 351) using index "i" (which evaluates to 10).
 - client/Wayland/wlf_input.c:308: overrun-local: Overrunning array "contacts" of 10 32-byte elements at element index 10 (byte offset 351) using index "i" (which evaluates to 10).
 - client/Wayland/wlf_input.c:360: overrun-local: Overrunning array "contacts" of 10 32-byte elements at element index 10 (byte offset 351) using index "i" (which evaluates to 10).
 - client/Wayland/wlf_input.c:251: error[arrayIndexOutOfBounds]: Array 'contacts[10]' accessed at index 10, which is out of bounds.
 - client/Wayland/wlf_input.c:308: error[arrayIndexOutOfBounds]: Array 'contacts[10]' accessed at index 10, which is out of bounds.
 - client/Wayland/wlf_input.c:360: error[arrayIndexOutOfBounds]: Array 'contacts[10]' accessed at index 10, which is out of bounds.
 - client/Wayland/wlf_input.c:246: uninit_use_in_call: Using uninitialized value "y" when calling "wlf_scale_coordinates".
 - client/Wayland/wlf_input.c:246: uninit_use_in_call: Using uninitialized value "x" when calling "wlf_scale_coordinates".

The maximal number of touches can be higher then 10, see:
https://wayland.freedesktop.org/libinput/doc/latest/touchpads.html

Let's increse the MAX_CONTACTS count and add checks to prevent usage of
uninitialized values.

(cherry picked from commit 6ab79961ef09bc0340633319c388b6b7517b1f3d)

3 years agogdi: Fix missing unlock
Ondrej Holy [Thu, 28 May 2020 06:32:17 +0000 (08:32 +0200)]
gdi: Fix missing unlock

This fixes the following defect reported by covscan tool:
libfreerdp/gdi/gfx.c:144: missing_unlock: Returning without unlocking "update->mux".

(cherry picked from commit 914808f62cd2ac4a6984ee638112e8dc3aad9e52)

3 years ago[generate_argument_docbook] Fix typo in XML entity.
Simon Tatham [Sat, 30 May 2020 09:57:10 +0000 (10:57 +0100)]
[generate_argument_docbook] Fix typo in XML entity.

The character '>' was being rendered as < instead of >.

(cherry picked from commit 98930bf2759905f2290e5d777f57a79e7589f220)

3 years agoFix memory leaks in client/encomsp_main.c and client/remdesk_main.c
Patrick Chin [Fri, 29 May 2020 22:29:58 +0000 (23:29 +0100)]
Fix memory leaks in client/encomsp_main.c and client/remdesk_main.c

(cherry picked from commit 28e29f8ad568b195a9d6a1d785eaa81da13f93ff)

3 years agoFixed #6245: Added additional tests to assistance parser
Armin Novak [Fri, 29 May 2020 15:24:15 +0000 (17:24 +0200)]
Fixed #6245: Added additional tests to assistance parser

(cherry picked from commit 69141aa830b6e73e859f907b9bd2a4cac2777d8f)

3 years agoreport only actual bytes received, not allocated buffer size (interrupt produces...
Florian Staudacher [Fri, 29 May 2020 00:20:15 +0000 (02:20 +0200)]
report only actual bytes received, not allocated buffer size (interrupt produces data, timeout doesn't)

(cherry picked from commit 2e4f27ac9f7bcecb3c3f453341818e538386207f)

3 years agoLock remaining occurances of security_encrypt/security_decrypt variables
akallabeth [Fri, 29 May 2020 07:30:25 +0000 (09:30 +0200)]
Lock remaining occurances of security_encrypt/security_decrypt variables

(cherry picked from commit f01ae7d2573b677eba6c8a50fe12246a23b15f2e)

3 years agoLock security_decrypt to avoid simultaneous counter manipulation
akallabeth [Fri, 29 May 2020 07:20:05 +0000 (09:20 +0200)]
Lock security_decrypt to avoid simultaneous counter manipulation

(cherry picked from commit 164c00f68b64781d8c624a8c71fab6691519d294)

3 years agoonly call 'libusb_set_interface_alt_setting' when value is changed
Florian Staudacher [Thu, 28 May 2020 15:16:15 +0000 (17:16 +0200)]
only call 'libusb_set_interface_alt_setting' when value is changed

(cherry picked from commit ea8c922355c48b6a18900aa543e716b6ae1cd08e)

3 years agowinpr/library: Use RTLD_GLOBAL for dlopen
Ondrej Holy [Wed, 27 May 2020 06:43:00 +0000 (08:43 +0200)]
winpr/library: Use RTLD_GLOBAL for dlopen

LoadLibraryA implementation uses the RTLD_LOCAL flag for dlopen currently.
This flag doesn't allow the symbols to be used by the subsequently loaded
libraries. This is a problem for the video channel when -DBUILTIN_CHANNELS=OFF
is used as it uses functions from the geometry channel. Let's use RTLD_GLOBAL
instead to prevent "undefined symbol" errors in such cases.

Fixes: https://github.com/FreeRDP/FreeRDP/issues/6236
(cherry picked from commit d8cd671cc68d503757e32eb80f7a4dee44e47754)

3 years agoAdded scancodes for launch keys
akallabeth [Tue, 26 May 2020 10:15:27 +0000 (12:15 +0200)]
Added scancodes for launch keys

(cherry picked from commit c97c1ca359db825ee6d172b5860b793dcf3a1e83)

3 years agoAdded release zip creation to script.
Armin Novak [Mon, 25 May 2020 17:30:11 +0000 (19:30 +0200)]
Added release zip creation to script.

(cherry picked from commit 25f62eedddc8fb249e0936f86f9984ee9724c6a1)

3 years agoFixed #6221: Update floatbar position with multitouch input
Armin Novak [Fri, 22 May 2020 09:24:25 +0000 (11:24 +0200)]
Fixed #6221: Update floatbar position with multitouch input

(cherry picked from commit 004910ce5d76e114f4f8cfec6429004b26bc4443)

3 years agoFixed memory leak in rdpei
Armin Novak [Fri, 22 May 2020 08:59:06 +0000 (10:59 +0200)]
Fixed memory leak in rdpei

(cherry picked from commit 8c2c19bbc81eaf69169bd581dbac8c9a906fb5ee)

3 years agonew: add release script
Bernhard Miklautz [Thu, 21 May 2020 09:08:26 +0000 (11:08 +0200)]
new: add release script

Add a updated version of script for creating the release tarball.
If TAG is set the TAG is used otherwise it is tried to detect the last
TAG using git describe.

(cherry picked from commit 93d6de297800568b571e373d6989c54345f1e1da)

3 years agoRead newline from stdio on certificate accept
akallabeth [Wed, 20 May 2020 09:57:01 +0000 (11:57 +0200)]
Read newline from stdio on certificate accept

(cherry picked from commit 5b842bc7a78621218b1179923c002d32c41f15fe)

4 years agoMerge pull request #6212 from akallabeth/stable_backport_cve 2.1.1
Martin Fleisz [Wed, 20 May 2020 14:45:43 +0000 (16:45 +0200)]
Merge pull request #6212 from akallabeth/stable_backport_cve

Stable backport cve

4 years agoPrepared version for 2.1.1
akallabeth [Mon, 18 May 2020 15:10:18 +0000 (17:10 +0200)]
Prepared version for 2.1.1

4 years agoUpdated changelog for 2.1.1
akallabeth [Mon, 18 May 2020 15:10:08 +0000 (17:10 +0200)]
Updated changelog for 2.1.1

4 years agoClear dynamic channel lists on disconnect.
akallabeth [Tue, 19 May 2020 11:11:32 +0000 (13:11 +0200)]
Clear dynamic channel lists on disconnect.

(cherry picked from commit a1eb3e66b31579d3d878dee67913962140f75255)

4 years agocodec: fix typo in progressive codec log
Kobi Mizrachi [Tue, 19 May 2020 12:06:22 +0000 (15:06 +0300)]
codec: fix typo in progressive codec log

(cherry picked from commit 8d72051ab157d89af3f919a441170ca57bf67e84)

4 years agoFixed some more resource cleanup leaks in nla
akallabeth [Tue, 19 May 2020 12:07:15 +0000 (14:07 +0200)]
Fixed some more resource cleanup leaks in nla

(cherry picked from commit 354bb7d6ae98df282775d154b609a39c1068a09b)

4 years agoReformatted to satisfy clang-format
akallabeth [Wed, 20 May 2020 13:24:34 +0000 (15:24 +0200)]
Reformatted to satisfy clang-format

(cherry picked from commit a4e95f8e65dfbfd2625034ad6740645366a6c0c0)

4 years agoAbort on first possible certificate validation error
akallabeth [Wed, 20 May 2020 11:45:57 +0000 (13:45 +0200)]
Abort on first possible certificate validation error

Only retry certificate validation if the purpose was wrong.

(cherry picked from commit de619e9964684eced5fb3108de81440b979aace0)

4 years agoFixed #6197: NULL check in urbdrc
akallabeth [Wed, 20 May 2020 06:59:44 +0000 (08:59 +0200)]
Fixed #6197: NULL check in urbdrc

(cherry picked from commit fb3a0e6b5ae3b4e6523509a0ec0c522425968989)

4 years agoFixed #6195: Wrong length read/write in rdpei
Armin Novak [Tue, 19 May 2020 17:46:01 +0000 (19:46 +0200)]
Fixed #6195: Wrong length read/write in rdpei

(cherry picked from commit a18a732d4b87c85bcd364626b9ab2b8f95f9e955)

4 years agoFixed #6200: Arraysize check
Armin Novak [Tue, 19 May 2020 17:32:42 +0000 (19:32 +0200)]
Fixed #6200: Arraysize check

(cherry picked from commit 06c48df0dfd228646fed00c554a20ae9bcaa5e5e)

4 years agoFixed #6199: Reading version information in tsg
Armin Novak [Tue, 19 May 2020 17:29:32 +0000 (19:29 +0200)]
Fixed #6199: Reading version information in tsg

(cherry picked from commit e501c56e5ca0c76c4019e7048cba3ee63331d830)

4 years agoFixed #6201: event handler count check
Armin Novak [Tue, 19 May 2020 17:25:18 +0000 (19:25 +0200)]
Fixed #6201: event handler count check

(cherry picked from commit 018eaa44f52b3e9e33bfa80493faf9be57713a3d)

4 years agoReset pointer to NULL after free.
akallabeth [Tue, 19 May 2020 13:18:55 +0000 (15:18 +0200)]
Reset pointer to NULL after free.

(cherry picked from commit 33c7f808154c6682d3b84526a46d79f3e8d5c1ac)

4 years agoRenamed variable to avoid MSVC define collission
akallabeth [Tue, 19 May 2020 09:32:59 +0000 (11:32 +0200)]
Renamed variable to avoid MSVC define collission

(cherry picked from commit f9e1f21b0ce47d8eeea40314ce6b8b666964dc7d)

4 years agoFixed missing label
akallabeth [Tue, 19 May 2020 07:05:05 +0000 (09:05 +0200)]
Fixed missing label

4 years agoEnsure buffers are NULL before reuse in NLA
akallabeth [Tue, 19 May 2020 06:16:55 +0000 (08:16 +0200)]
Ensure buffers are NULL before reuse in NLA

(cherry picked from commit 5f53b2b7c7109016b7127d595e13bd333ac77613)

4 years agoRemoved unused variable warnings
akallabeth [Tue, 19 May 2020 06:04:02 +0000 (08:04 +0200)]
Removed unused variable warnings

(cherry picked from commit 8052708f3354a686de98b62d641e9d0eb61a74db)

4 years agoFixed invalid argument to strtok_s
akallabeth [Tue, 19 May 2020 06:01:48 +0000 (08:01 +0200)]
Fixed invalid argument to strtok_s

(cherry picked from commit dc4ac3ba17b6a340b96aa3f6363c6fac866696b7)

4 years agoFixed GHSL-2020-101 missing NULL check
akallabeth [Tue, 19 May 2020 05:48:07 +0000 (07:48 +0200)]
Fixed GHSL-2020-101 missing NULL check

(cherry picked from commit b207dbba35c505bbc3ad5aadc10b34980c6b7e8e)

4 years agoFixed GHSL-2020-102 heap overflow
akallabeth [Tue, 19 May 2020 05:41:14 +0000 (07:41 +0200)]
Fixed  GHSL-2020-102 heap overflow

(cherry picked from commit 197b16cc15a12813c2e4fa2d6ae9cd9c4a57e581)

4 years agoFixed multiple sanitizer errors in codecs
akallabeth [Mon, 18 May 2020 15:40:28 +0000 (17:40 +0200)]
Fixed multiple sanitizer errors in codecs

(cherry picked from commit 2278d92a5d902692a7d1088629b2345c9b4e229c)

4 years agoFixed issues with clang sanitizers and alignemt offsets.
akallabeth [Mon, 18 May 2020 07:36:16 +0000 (09:36 +0200)]
Fixed issues with clang sanitizers and alignemt offsets.

(cherry picked from commit 4c1011fec37459ecc11f6c4453bcd693ed614e5d)

4 years agoFixed history buffer reset.
akallabeth [Mon, 18 May 2020 07:30:59 +0000 (09:30 +0200)]
Fixed history buffer reset.

(cherry picked from commit ccc9cbef2d5d0d9f5cf5ec7621f71bed33f41aba)

4 years agoFixed extended info packet alignment.
akallabeth [Mon, 18 May 2020 07:24:01 +0000 (09:24 +0200)]
Fixed extended info packet alignment.

(cherry picked from commit 03ebaf2dc1547c75f8693dd5087ce2e8dc17765a)

4 years agoFixed rdp_read_info_packet unaligned access and size checks
akallabeth [Mon, 18 May 2020 07:07:49 +0000 (09:07 +0200)]
Fixed rdp_read_info_packet unaligned access and size checks

(cherry picked from commit c75d08d70e878d35cd12ffac2aefcda405576092)

4 years agoFixed memory leak in test
akallabeth [Mon, 18 May 2020 06:10:42 +0000 (08:10 +0200)]
Fixed memory leak in test

(cherry picked from commit 2d630cccf7b1e566f99b74a224805fc25f85d6c1)

4 years agoFixed unaligned access
akallabeth [Mon, 18 May 2020 06:10:29 +0000 (08:10 +0200)]
Fixed unaligned access

(cherry picked from commit cb2ed7f09ad68242bfdfad8967024b063f785d97)

4 years agoFixed rails debug string warnings.
akallabeth [Mon, 18 May 2020 05:54:48 +0000 (07:54 +0200)]
Fixed rails debug string warnings.

(cherry picked from commit e58ea30305e8754ada82018c4f2042ec1b72337c)