platform/upstream/freerdp.git
6 years agoSilence WLog_ERR messages if last error is set.
Armin Novak [Mon, 6 Nov 2017 13:02:22 +0000 (14:02 +0100)]
Silence WLog_ERR messages if last error is set.

6 years agoMerge pull request #4053 from akallabeth/ffmpeg_encoder
David Fort [Mon, 6 Nov 2017 10:25:48 +0000 (11:25 +0100)]
Merge pull request #4053 from akallabeth/ffmpeg_encoder

Implemented FFMPEG based encoder.

6 years agoMerge pull request #4200 from cedrozor/upstream-master
akallabeth [Mon, 6 Nov 2017 09:22:37 +0000 (10:22 +0100)]
Merge pull request #4200 from cedrozor/upstream-master

Windows client: refresh only updated region(s) instead of whole screen

6 years agoMerge pull request #4187 from hardening/multimon_fix
akallabeth [Mon, 6 Nov 2017 09:02:07 +0000 (10:02 +0100)]
Merge pull request #4187 from hardening/multimon_fix

Multimonitor fix

6 years agoMerge pull request #4206 from akallabeth/x_window_title
David Fort [Fri, 3 Nov 2017 20:34:18 +0000 (21:34 +0100)]
Merge pull request #4206 from akallabeth/x_window_title

X11 window title fix

6 years agoX11 window title fix
Armin Novak [Tue, 31 Oct 2017 17:00:15 +0000 (18:00 +0100)]
X11 window title fix

6 years agoMerge pull request #4205 from akallabeth/WIN32_FIND_DATA
Martin Fleisz [Tue, 31 Oct 2017 16:17:43 +0000 (17:17 +0100)]
Merge pull request #4205 from akallabeth/WIN32_FIND_DATA

Fixed #4199: ConvertFindDataAToW string length

6 years agoFixed #4199: ConvertFindDataAToW string length
Armin Novak [Tue, 31 Oct 2017 11:02:29 +0000 (12:02 +0100)]
Fixed #4199: ConvertFindDataAToW string length

6 years agoMerge pull request #4159 from aleksei-klv/dex
akallabeth [Tue, 31 Oct 2017 14:36:22 +0000 (15:36 +0100)]
Merge pull request #4159 from aleksei-klv/dex

Optimized aFreeRDP for Samsung DeX

6 years agoMerge pull request #4179 from akallabeth/android_cleanup_fix
Martin Fleisz [Tue, 31 Oct 2017 10:42:58 +0000 (11:42 +0100)]
Merge pull request #4179 from akallabeth/android_cleanup_fix

[android] Ensure native session is disconnected before resource free.

6 years agoMerge pull request #4204 from lunixoid/master
Martin Fleisz [Tue, 31 Oct 2017 08:55:43 +0000 (09:55 +0100)]
Merge pull request #4204 from lunixoid/master

Fixed twice assigned values

6 years agoFixed twice assigned values
Roman Kalashnikov [Mon, 30 Oct 2017 21:11:25 +0000 (00:11 +0300)]
Fixed twice assigned values

6 years agoMerge pull request #4203 from floppym/mkdir-error
Mike Gilbert [Mon, 30 Oct 2017 16:29:58 +0000 (12:29 -0400)]
Merge pull request #4203 from floppym/mkdir-error

winpr: _IoCreateDeviceEx: fix mkdir error check

6 years agowinpr: _IoCreateDeviceEx: fix mkdir error check
Mike Gilbert [Mon, 30 Oct 2017 00:26:53 +0000 (20:26 -0400)]
winpr: _IoCreateDeviceEx: fix mkdir error check

The mkdir(2) function returns 0 on success, and -1 on error.

This resolves an error in TestIoDevice when /tmp/.device/ does not
exist.

Bug: https://bugs.gentoo.org/635838

6 years agoMerge pull request #4201 from kakaroto/listener-unlink-bugfix
akallabeth [Mon, 30 Oct 2017 14:47:02 +0000 (15:47 +0100)]
Merge pull request #4201 from kakaroto/listener-unlink-bugfix

Do not delete the listener socket right after creating it.

6 years agoMerge pull request #4202 from lunixoid/master
David Fort [Sun, 29 Oct 2017 16:52:19 +0000 (17:52 +0100)]
Merge pull request #4202 from lunixoid/master

Static analyser issues

6 years agoUpdate semaphore.c
Roman Kalashnikov [Sat, 28 Oct 2017 08:59:23 +0000 (11:59 +0300)]
Update semaphore.c

6 years agoFixed Expression 'pComm != NULL' is always true
Roman Kalashnikov [Fri, 27 Oct 2017 22:48:41 +0000 (01:48 +0300)]
Fixed Expression 'pComm != NULL' is always true

pComm was checked earlier in 1363 string:
`if (pComm == NULL)`

6 years agoFixed duplicated assigne
Roman Kalashnikov [Fri, 27 Oct 2017 22:46:06 +0000 (01:46 +0300)]
Fixed duplicated assigne

6 years agoDo not delete the listener socket right after creating it.
Youness Alaoui [Fri, 27 Oct 2017 18:38:35 +0000 (14:38 -0400)]
Do not delete the listener socket right after creating it.

The listener server socket file needs to be deleted before we bind it
otherwise it's an "address already in use" error. But it was getting
deleted after the bind, causing the file to disappear, and preventing
anyone from connecting to the listener socket since the socket stops
existing.

This is caused by commit 884e87fde4ece132c3b7bdf947de044ecb3d4b14

6 years agofixed hdc initialization into wf_begin_paint so the region invalidation into wf_end_p...
cedrozor [Fri, 27 Oct 2017 12:30:00 +0000 (14:30 +0200)]
fixed hdc initialization into wf_begin_paint so the region invalidation into wf_end_paint applies to the same hdc
the objective is that only the updated region(s) are refreshed instead of the whole screen
it's not much a problem for normal FreeRDP usage but becomes a serious issue if the display is processed, forwarded and rendered remotely, as done by web gateways such as Guacamole, FreeRDP-WebConnect and Myrtille (I'm the author of the latter)

6 years agoremove temporary hack
Aleksei Kliuev [Thu, 26 Oct 2017 12:36:53 +0000 (15:36 +0300)]
remove temporary hack

6 years agoMerge pull request #4198 from akallabeth/nla_error_fix
David Fort [Wed, 25 Oct 2017 22:17:03 +0000 (00:17 +0200)]
Merge pull request #4198 from akallabeth/nla_error_fix

Added better error mapping for NEGO results.

6 years agoAdded better error mapping for NEGO results.
Armin Novak [Wed, 25 Oct 2017 07:56:39 +0000 (09:56 +0200)]
Added better error mapping for NEGO results.

6 years agoFixed possible race condition on resource cleanup.
Armin Novak [Mon, 23 Oct 2017 07:48:52 +0000 (09:48 +0200)]
Fixed possible race condition on resource cleanup.

6 years agoMerge pull request #4195 from nfedera/fix-sse3-yuv444pixel
David Fort [Thu, 19 Oct 2017 11:15:04 +0000 (13:15 +0200)]
Merge pull request #4195 from nfedera/fix-sse3-yuv444pixel

primitives/yuv: fix endianess issue

6 years agoprimitives/yuv: fix endianess issue
Norbert Federa [Thu, 19 Oct 2017 09:55:13 +0000 (11:55 +0200)]
primitives/yuv: fix endianess issue

6 years agoMerge pull request #4190 from akallabeth/media_foundation_fix_win7
Norbert Federa [Wed, 18 Oct 2017 08:24:35 +0000 (10:24 +0200)]
Merge pull request #4190 from akallabeth/media_foundation_fix_win7

Removed unused function pointer

6 years agoRemoved unused function pointer
Armin Novak [Wed, 18 Oct 2017 07:52:41 +0000 (09:52 +0200)]
Removed unused function pointer

The function was breaking windows 7 compatibility.

6 years agoMerge pull request #4189 from nfedera/fix-h264-init
Norbert Federa [Tue, 17 Oct 2017 19:33:16 +0000 (21:33 +0200)]
Merge pull request #4189 from nfedera/fix-h264-init

codec/h264: fix potential segfault and mf_init

6 years agocodec/h264: fix potential segfault and mf_init
Norbert Federa [Tue, 17 Oct 2017 17:28:54 +0000 (19:28 +0200)]
codec/h264: fix potential segfault and mf_init

6 years agomultimon: flag the primary monitor according to the /monitors option
David Fort [Tue, 17 Oct 2017 12:31:11 +0000 (14:31 +0200)]
multimon: flag the primary monitor according to the /monitors option

The first monitor of the list is considered like the primary monitor.

6 years agomultimon: correctly set the primary monitor
David Fort [Tue, 17 Oct 2017 12:07:23 +0000 (14:07 +0200)]
multimon: correctly set the primary monitor

According to the spec the primary monitor is supposed to be in (0,0) and other monitors
to be given relative to this one.

6 years agoAdded default return if instance not in list.
Armin Novak [Tue, 17 Oct 2017 07:12:27 +0000 (09:12 +0200)]
Added default return if instance not in list.

6 years agoMerge pull request #4177 from rjcorrig/tabfix
akallabeth [Mon, 16 Oct 2017 15:21:35 +0000 (17:21 +0200)]
Merge pull request #4177 from rjcorrig/tabfix

Android: Fix tab key mapping for hardware keyboard

6 years agoEnsure native session is disconnected before resource free.
Armin Novak [Fri, 13 Oct 2017 11:13:33 +0000 (13:13 +0200)]
Ensure native session is disconnected before resource free.

6 years agoFix tab key mapping for hardware keyboard
Robert Corrigan [Thu, 12 Oct 2017 16:56:34 +0000 (12:56 -0400)]
Fix tab key mapping for hardware keyboard

6 years agoMerge pull request #4175 from akallabeth/time_fix
Martin Fleisz [Thu, 12 Oct 2017 10:12:43 +0000 (12:12 +0200)]
Merge pull request #4175 from akallabeth/time_fix

Fixed file timestamps.

6 years agoMerge pull request #4172 from hardening/egfx_cache
Martin Fleisz [Thu, 12 Oct 2017 10:12:08 +0000 (12:12 +0200)]
Merge pull request #4172 from hardening/egfx_cache

egfx: fix disconnection caused by invalid cache entries due to wrong announced cache size

6 years agoFixed file timestamps.
Armin Novak [Thu, 12 Oct 2017 09:27:32 +0000 (11:27 +0200)]
Fixed file timestamps.

6 years agoegfx: fix disconnection caused by invalid cache entries due to wrong announced cache...
David Fort [Tue, 10 Oct 2017 15:12:16 +0000 (17:12 +0200)]
egfx: fix disconnection caused by invalid cache entries due to wrong announced cache size

Added some checks so that when setting a cache entry fails, we close connection (or
we fail later when trying to use that empty entry).
The small cache egfx capability has also been fixed.

6 years agoMerge pull request #4164 from akallabeth/ak/mac_audio_refactor
Martin Fleisz [Mon, 9 Oct 2017 11:25:41 +0000 (13:25 +0200)]
Merge pull request #4164 from akallabeth/ak/mac_audio_refactor

Pause playback on queue empty, free buffers on close.

6 years agoMerge pull request #4167 from bmiklautz/buildversion
akallabeth [Mon, 9 Oct 2017 07:19:19 +0000 (09:19 +0200)]
Merge pull request #4167 from bmiklautz/buildversion

 feat: add support for .source_version

6 years agofeat freerdp-nighlty/deb: create .source_version
Bernhard Miklautz [Fri, 6 Oct 2017 13:02:46 +0000 (15:02 +0200)]
feat freerdp-nighlty/deb: create .source_version

6 years agofeat: add support for .source_version
Bernhard Miklautz [Fri, 6 Oct 2017 11:52:10 +0000 (13:52 +0200)]
feat: add support for .source_version

When building packages, especially when source packages are used, git is
not necessarily available or the source isn't provided in git. In those
cases it wasn't possible to set the GIT_REVISION and --version shows
"n/a" for the git revision.

If the file .source_version is available now the content of it is used
as GIT_REVISION. Packagers might want to add a .source_version file
when they don't build the packages from git.

Possible breaking change:

The variable PRODUCT_VERSION isn't available anymore. Use GIT_REVISION
instead.

6 years agoMerge pull request #4162 from hardening/misc_fix2
Bernhard Miklautz [Thu, 5 Oct 2017 13:13:30 +0000 (15:13 +0200)]
Merge pull request #4162 from hardening/misc_fix2

Misc fix and improvements for the DR channel

6 years agoPause playback on queue empty, free buffers on close.
Armin Novak [Thu, 5 Oct 2017 10:05:09 +0000 (12:05 +0200)]
Pause playback on queue empty, free buffers on close.

6 years agoAdd checks for DR channel
David Fort [Mon, 2 Oct 2017 19:28:02 +0000 (21:28 +0200)]
Add checks for DR channel

6 years agoFix for #4161
David Fort [Mon, 2 Oct 2017 18:57:27 +0000 (20:57 +0200)]
Fix for #4161

The checks were wrong, fix them.

6 years agofix crashing app in dex mode
Aleksei Kliuev [Tue, 19 Sep 2017 12:50:35 +0000 (15:50 +0300)]
fix crashing app in dex mode

6 years agofix right click
Aleksei Kliuev [Mon, 11 Sep 2017 14:54:19 +0000 (17:54 +0300)]
fix right click

6 years agorevert gradle
Aleksei Kliuev [Mon, 11 Sep 2017 11:23:28 +0000 (14:23 +0300)]
revert gradle

6 years agoAdd Samsung DeX support
Aleksei Kliuev [Mon, 11 Sep 2017 11:03:30 +0000 (14:03 +0300)]
Add Samsung DeX support

6 years agoMerge pull request #4154 from hardening/misc_fixes
akallabeth [Wed, 27 Sep 2017 12:56:21 +0000 (14:56 +0200)]
Merge pull request #4154 from hardening/misc_fixes

Fix raw surfaces displaying + misc other changes

6 years agoMerge pull request #4144 from bmiklautz/clipboardon
akallabeth [Wed, 27 Sep 2017 09:14:39 +0000 (11:14 +0200)]
Merge pull request #4144 from bmiklautz/clipboardon

Enable clipboard channel per default

6 years agoEnable clipboard channel per default
Bernhard Miklautz [Sat, 23 Sep 2017 13:16:17 +0000 (15:16 +0200)]
Enable clipboard channel per default

6 years agoFix displaying of raw surfaces
David Fort [Tue, 26 Sep 2017 07:21:28 +0000 (09:21 +0200)]
Fix displaying of raw surfaces

6 years agoCheck return value of malloc
David Fort [Tue, 26 Sep 2017 07:20:38 +0000 (09:20 +0200)]
Check return value of malloc

6 years agoMerge pull request #4156 from akallabeth/test_connect_extend_timeout
David Fort [Tue, 26 Sep 2017 11:52:37 +0000 (13:52 +0200)]
Merge pull request #4156 from akallabeth/test_connect_extend_timeout

Added delay for connect abort

6 years agoAdded delay for connect abort
Armin Novak [Tue, 26 Sep 2017 10:03:57 +0000 (12:03 +0200)]
Added delay for connect abort

The connection abort must be called after freerdp_connect.
Ensure that this function is already running by waiting
a second.

6 years agoMerge pull request #4155 from akallabeth/test_connect_extend_timeout
David Fort [Tue, 26 Sep 2017 09:26:35 +0000 (11:26 +0200)]
Merge pull request #4155 from akallabeth/test_connect_extend_timeout

TestConnect: Extend timeout, only listen locally

6 years agoTestConnect: Extend timeout, only listen locally
Armin Novak [Tue, 26 Sep 2017 08:52:13 +0000 (10:52 +0200)]
TestConnect: Extend timeout, only listen locally

6 years agoMerge pull request #4152 from akallabeth/dynamic_channel_test_fix
David Fort [Tue, 26 Sep 2017 07:40:30 +0000 (09:40 +0200)]
Merge pull request #4152 from akallabeth/dynamic_channel_test_fix

Dynamic channel test fix

6 years agoFixed TestConnect with dynamic channels.
Armin Novak [Mon, 25 Sep 2017 11:30:05 +0000 (13:30 +0200)]
Fixed TestConnect with dynamic channels.

6 years agoFixed client context setup with default initializer.
Armin Novak [Mon, 25 Sep 2017 11:29:23 +0000 (13:29 +0200)]
Fixed client context setup with default initializer.

6 years agoFixed resizing of PubSub
Armin Novak [Mon, 25 Sep 2017 11:28:16 +0000 (13:28 +0200)]
Fixed resizing of PubSub

6 years agoMerge pull request #4150 from akallabeth/server_file_handle_leak
David Fort [Mon, 25 Sep 2017 11:17:32 +0000 (13:17 +0200)]
Merge pull request #4150 from akallabeth/server_file_handle_leak

Unlink file after binding to it.

6 years agoUnlink file after binding to it.
Armin Novak [Mon, 25 Sep 2017 08:35:24 +0000 (10:35 +0200)]
Unlink file after binding to it.

When unlinking the file before binding, a new entry is created
in the file system after binding. This is not desireable, so
unlink it after binding to remove the temporary file after the process
closes.

6 years agoextend /size to allow width or height percentages (#4146)
Bernhard Miklautz [Mon, 25 Sep 2017 07:35:49 +0000 (09:35 +0200)]
extend /size to allow width or height percentages (#4146)

If the size parameter is used with a percentages like /size:50% now
an additional 'w' or 'h' can be appended (like /size:50%w) to specify
where the percentage should be applied. If both or none are set the
behavior is like it was before and the percentage is applied to width
and height.

6 years agoMerge pull request #4060 from akallabeth/icu_support
David Fort [Mon, 25 Sep 2017 07:33:58 +0000 (09:33 +0200)]
Merge pull request #4060 from akallabeth/icu_support

Using ICU instead of custom unicode conversion.

6 years agoMerge pull request #4142 from bmiklautz/macOS
David Fort [Mon, 25 Sep 2017 07:12:35 +0000 (09:12 +0200)]
Merge pull request #4142 from bmiklautz/macOS

Fix build on macOS

6 years agoMerge pull request #4143 from bmiklautz/pass_is_sc_pin
David Fort [Mon, 25 Sep 2017 07:09:55 +0000 (09:09 +0200)]
Merge pull request #4143 from bmiklautz/pass_is_sc_pin

Add support for "password is pin"

6 years agoExpose PasswordIsSmartcardPin settings from cmdline via password-is-pin arg
Jukka-Pekka Virtanen [Sat, 23 Sep 2017 12:26:38 +0000 (14:26 +0200)]
Expose PasswordIsSmartcardPin settings from cmdline via password-is-pin arg

6 years agoUsing PasswordIsSmartcardPin option when sending TS_INFO_PACKET
Jukka-Pekka Virtanen [Thu, 14 Sep 2017 10:34:09 +0000 (13:34 +0300)]
Using PasswordIsSmartcardPin option when sending TS_INFO_PACKET

6 years agomacOS: add a README file
Bernhard Miklautz [Sat, 23 Sep 2017 12:08:05 +0000 (14:08 +0200)]
macOS: add a README file

Add a README file containing some notes about building FreeRDP on macOS
related to openssl.

6 years agowinpr/makecert: fix linking against libcrypto
Bernhard Miklautz [Sat, 23 Sep 2017 11:57:57 +0000 (13:57 +0200)]
winpr/makecert: fix linking against libcrypto

Use OPENSSL_CRYPTO_LIBRARIES instead of linking against crypto directly.

6 years agomacOS: add a workaround to build with newer SDKs
Bernhard Miklautz [Sat, 23 Sep 2017 11:31:34 +0000 (13:31 +0200)]
macOS: add a workaround to build with newer SDKs

SDK 10.13 (and possibly olders as well) need HAVE_UNISTD_H to be set to
a value if available otherwise the following error is thrown:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/dispatch/dispatch.h:38:45:
 error: expected value in expression #if !defined(HAVE_UNISTD_H) || HAVE_UNISTD_H

6 years agoMerge pull request #4045 from akallabeth/drive_fixes_overlayfs
Bernhard Miklautz [Fri, 22 Sep 2017 15:22:00 +0000 (17:22 +0200)]
Merge pull request #4045 from akallabeth/drive_fixes_overlayfs

Drive fixes overlayfs

6 years agoMerge pull request #4136 from tditsch/master
David Fort [Fri, 22 Sep 2017 07:52:27 +0000 (09:52 +0200)]
Merge pull request #4136 from tditsch/master

Fixed endless loop when RDP Server sends SERVER_DENIED_CONNECTION

6 years agoMerge pull request #4116 from ChickenPeanut/patch-1
Bernhard Miklautz [Thu, 21 Sep 2017 12:50:34 +0000 (14:50 +0200)]
Merge pull request #4116 from ChickenPeanut/patch-1

Fixed BadValue with XCreateWindow

6 years agoMerge pull request #4138 from akallabeth/ak/nla_free_fix
Martin Fleisz [Tue, 19 Sep 2017 11:51:09 +0000 (13:51 +0200)]
Merge pull request #4138 from akallabeth/ak/nla_free_fix

Check and invalidate handles on free.

6 years agoCheck and invalidate handles on free.
Armin Novak [Tue, 19 Sep 2017 10:33:33 +0000 (12:33 +0200)]
Check and invalidate handles on free.

6 years agorefactored Bugfix
tditsch [Tue, 19 Sep 2017 08:18:41 +0000 (10:18 +0200)]
refactored Bugfix

6 years agoFixed endless loop when RDP Server sends SERVER_DENIED_CONNECTION
tditsch [Mon, 18 Sep 2017 15:29:16 +0000 (17:29 +0200)]
Fixed endless loop when RDP Server sends SERVER_DENIED_CONNECTION

6 years agoFix colors on big endian (#4135)
Ondrej Holy [Mon, 18 Sep 2017 08:47:56 +0000 (10:47 +0200)]
Fix colors on big endian (#4135)

* client/x11: Fix colors on big endian

The bitmaps are recieved in little endian byte order (LSBFirst in terms
of X11). This is a problem on systems, where bitmaps are expected in big
endian byte order (MSBFirst). X11 client tries to handle this situation
by different color formats (e.g. RGBX vs. BGRX), but this doesn't work.
BGRX is not MSBFirst variant of RGBX, it should be XRGB. But this would
work only for 32/24 depths, where color channels matches bytes. Let's
say to the XServer that all the bitmaps are in LSBFirst encoding instead
of changing the color formats on big endian systems.

https://github.com/FreeRDP/FreeRDP/issues/2520

* client/x11: Fix cursor color on big endian

The cursor color is wrong on big endian systems. It is not probably
possible to force bitmap_order for XcursorImage as it is possible for
XImage. Fortunately, cursors are always 32 bit so we can use ABGR
instead of BGRA to deal with.

https://github.com/FreeRDP/FreeRDP/issues/2520

* client/x11: Fix comment indentation

The comment has wrong indentation for some reason, let's fix it.

* client/x11: Fix BGR vs. RGB detection

The BGR vs. RGB detection code is leftover from history and I am conviced
that it is wrong with the current color handling, where invert flag is TRUE
by default. However, I suppose that the detection still makes sense and
XServer may use the inverted formats in some cases. Maybe we can force XServer
to use our masks somehow, but let's just fix the value to FALSE now.

* client/x11: Remove unused color shifts

The color shifts are lefover from history and are not used in current
code. Let's remove them.

6 years agoMerge pull request #4121 from ondrejholy/setsurface-segfault-fix
David Fort [Mon, 18 Sep 2017 08:17:43 +0000 (10:17 +0200)]
Merge pull request #4121 from ondrejholy/setsurface-segfault-fix

Various fixes from #4117

6 years agoMerge pull request #4052 from akallabeth/mac_fixes
David Fort [Tue, 12 Sep 2017 21:16:39 +0000 (23:16 +0200)]
Merge pull request #4052 from akallabeth/mac_fixes

Mac drive fixes

6 years agoMerge pull request #4127 from mfleisz/avc420
MartinHaimberger [Mon, 11 Sep 2017 14:34:24 +0000 (16:34 +0200)]
Merge pull request #4127 from mfleisz/avc420

channels: Don't send gfx capversion 10 if AVC420 is requested

6 years agochannels: Don't send gfx capversion 10 if AVC420 is requested
Martin Fleisz [Mon, 11 Sep 2017 10:05:03 +0000 (12:05 +0200)]
channels: Don't send gfx capversion 10 if AVC420 is requested

6 years agocache: Use Bitmap_Free instead of free
Ondrej Holy [Tue, 5 Sep 2017 08:25:15 +0000 (10:25 +0200)]
cache: Use Bitmap_Free instead of free

Bitmap_Alloc is used to allocate memory of bitmap, Bitmap_Free should
be used to release that memory. Let's change free to Bitmap_Free.

https://github.com/FreeRDP/FreeRDP/issues/4117

6 years agoorders: Fix OFFSCREEN_DELETE_LIST allocation size
Ondrej Holy [Tue, 5 Sep 2017 07:56:00 +0000 (09:56 +0200)]
orders: Fix OFFSCREEN_DELETE_LIST allocation size

The size of OFFSCREEN_DELETE_LIST list allocation was incorrectly changed
by commit 99b1481 and consequently fixed incorrectly by commit 8a0fe086.
Let's count the allocation size based on new size and not based on current
size in order to prevent some memory issues.

https://github.com/FreeRDP/FreeRDP/issues/4117

6 years agoorders: Fix ORDER_TYPE_GDIPLUS_END check
Ondrej Holy [Tue, 5 Sep 2017 06:58:37 +0000 (08:58 +0200)]
orders: Fix ORDER_TYPE_GDIPLUS_END check

Commit 6fd03ab introduced security checks for orders, but
ORDER_TYPE_GDIPLUS_END check fails in case of success and vice versa.
Let's add the missing question mark.

https://github.com/FreeRDP/FreeRDP/issues/4117

6 years agocache: Check return value from offscreen_cache_get
Ondrej Holy [Mon, 4 Sep 2017 16:48:25 +0000 (18:48 +0200)]
cache: Check return value from offscreen_cache_get

Currently, SetSurface is called regardless of return value from
offscreen_cache_get. It may happen that bitmap is not found in a
cache from some reason, which may lead to segfaults. Let's check
the returned value before use.

https://github.com/FreeRDP/FreeRDP/issues/4117

6 years agoclient/X11: Check arguments in xf_Bitmap_SetSurface
Ondrej Holy [Mon, 4 Sep 2017 16:22:49 +0000 (18:22 +0200)]
client/X11: Check arguments in xf_Bitmap_SetSurface

Arguments of xf_Bitmap_SetSurface are not checked before use currently
which may lead to segfaults. It may happen if bitmap is not found in a
cache from some reason. Let's check the arguments before use similarly
as it is done in client/Windows/wf_graphics.c in order to avoid segfaults.

https://github.com/FreeRDP/FreeRDP/issues/4117

6 years agoFixed BadValue with XCreateWindow
ChickenPeanut [Sun, 3 Sep 2017 22:52:34 +0000 (18:52 -0400)]
Fixed BadValue with XCreateWindow

xf_FixWindowCoordinates occasionally set the dimensions of the window to invalid values (0) because the minimum value check was done at the beginning of the method rather than at the end

6 years agoMerge pull request #4079 from akallabeth/channel_pubsub_fix
David Fort [Thu, 31 Aug 2017 08:22:43 +0000 (10:22 +0200)]
Merge pull request #4079 from akallabeth/channel_pubsub_fix

Dynamic channel signal disconnect after the fact.

6 years agoRemoved unused variable.
Armin Novak [Thu, 31 Aug 2017 07:57:49 +0000 (09:57 +0200)]
Removed unused variable.

6 years agoUnified dynamic channel cleanup code.
Armin Novak [Thu, 31 Aug 2017 07:06:59 +0000 (09:06 +0200)]
Unified dynamic channel cleanup code.

6 years agoMerge pull request #4063 from akallabeth/auth_fixes
David Fort [Wed, 30 Aug 2017 08:19:12 +0000 (10:19 +0200)]
Merge pull request #4063 from akallabeth/auth_fixes

Fixed leaks, certificate comparison and channel context cleanup

6 years agoMerge pull request #4104 from abma/master
David Fort [Tue, 29 Aug 2017 09:06:13 +0000 (11:06 +0200)]
Merge pull request #4104 from abma/master

Revert "Possible fix for #4081 and #2707 (#4087)" (Part of #4096)