platform/upstream/freerdp.git
8 years agoMerge pull request #3428 from nfedera/fix-getcomputernameex-lentgh-calculation
David Fort [Thu, 30 Jun 2016 20:43:05 +0000 (22:43 +0200)]
Merge pull request #3428 from nfedera/fix-getcomputernameex-lentgh-calculation

winpr/sspi/ntlm: fix computer name len calculation

8 years agowinpr/sspi/ntlm: fix computer name len calculation
Norbert Federa [Thu, 30 Jun 2016 15:15:40 +0000 (17:15 +0200)]
winpr/sspi/ntlm: fix computer name len calculation

The lpnSize parameter for GetComputerNameEx specifies the total
size of the buffer (in characters).
However, the current code calculated the amount of bytes.
Since only GetComputerNameExA was used and because sizeof(CHAR) == 1
the result was correct but the math was wrong.
Credit goes to @byteboon

8 years agoMerge pull request #3426 from nfedera/fix-read-extended-info-packet
Bernhard Miklautz [Mon, 27 Jun 2016 13:28:22 +0000 (15:28 +0200)]
Merge pull request #3426 from nfedera/fix-read-extended-info-packet

protocol violation: rdp_read_extended_info_packet

8 years agoprotocol violation: rdp_read_extended_info_packet
Norbert Federa [Mon, 27 Jun 2016 08:56:40 +0000 (10:56 +0200)]
protocol violation: rdp_read_extended_info_packet

The clientTimeZone and all subsequent fields in the Extended Info Packet
(MS RDPBCGR 2.2.1.11.1.1.1) are optional but were not handled as such.

8 years agoMerge pull request #3418 from llyzs/rdpsnd_server_latency
Martin Fleisz [Wed, 22 Jun 2016 13:32:11 +0000 (15:32 +0200)]
Merge pull request #3418 from llyzs/rdpsnd_server_latency

rdpsnd/server: decrease audio latency and make it configurable.

8 years agordpsnd/server: decrease audio latency and make it configurable.
Vic Lee [Tue, 21 Jun 2016 06:05:29 +0000 (14:05 +0800)]
rdpsnd/server: decrease audio latency and make it configurable.

8 years agoMerge pull request #3408 from hendwolt/master
Bernhard Miklautz [Thu, 16 Jun 2016 14:16:37 +0000 (16:16 +0200)]
Merge pull request #3408 from hendwolt/master

fix errors in xdg-shell-xml for protocol creation

8 years agoMerge pull request #3410 from nfedera/fix-symbols
Martin Fleisz [Thu, 16 Jun 2016 12:46:27 +0000 (14:46 +0200)]
Merge pull request #3410 from nfedera/fix-symbols

Fix win32 linker hell and more

8 years agowinpr: fix win32 linking issues
Norbert Federa [Thu, 16 Jun 2016 09:47:33 +0000 (11:47 +0200)]
winpr: fix win32 linking issues

Depending on the windows target version (_WIN32_WINNT), the used
SDK and the build configuration the linker will see multiple
libraries exporting the same symbols.
To prevent ugly hacks (e.g. modifying cmake's default system
libraries or fragile library linking order chains) we prefix
these functions with "winpr_" and create corresponding defines
to keep the current api names.

8 years agofreerdp: remove static inet_ntop
Norbert Federa [Wed, 15 Jun 2016 16:01:38 +0000 (18:01 +0200)]
freerdp: remove static inet_ntop

inet_ntop is already implemented in winpr

8 years agocmake: remove some void statements and fix winpr source group
Norbert Federa [Wed, 15 Jun 2016 11:54:31 +0000 (13:54 +0200)]
cmake: remove some void statements and fix winpr source group

8 years agocmake: replaced STATIC_CHANNELS with BUILTIN_CHANNELS
Norbert Federa [Wed, 15 Jun 2016 11:36:27 +0000 (13:36 +0200)]
cmake: replaced STATIC_CHANNELS with BUILTIN_CHANNELS

8 years agochannels/audin/client/winmm: requires winpr
Norbert Federa [Wed, 15 Jun 2016 11:30:38 +0000 (13:30 +0200)]
channels/audin/client/winmm: requires winpr

8 years agofix errors in xdg-shell-xml for protocol creation
Hendrik Woltersdorf [Tue, 14 Jun 2016 18:43:35 +0000 (20:43 +0200)]
fix errors in xdg-shell-xml for protocol creation

8 years agoMerge pull request #3407 from nfedera/enable-tests-on-windows
Bernhard Miklautz [Tue, 14 Jun 2016 11:57:00 +0000 (13:57 +0200)]
Merge pull request #3407 from nfedera/enable-tests-on-windows

ci: build tests on windows from now on

8 years agoci: build tests on windows from now on
Norbert Federa [Tue, 14 Jun 2016 10:57:30 +0000 (12:57 +0200)]
ci: build tests on windows from now on

8 years agoMerge pull request #3406 from nfedera/fix-winpr-ntlm
Bernhard Miklautz [Tue, 14 Jun 2016 10:54:01 +0000 (12:54 +0200)]
Merge pull request #3406 from nfedera/fix-winpr-ntlm

winpr/sspi/ntlm: fix GetComputerNameExA parameters

8 years agowinpr/sspi/ntlm: fix GetComputerNameExA parameters
Norbert Federa [Tue, 14 Jun 2016 10:37:37 +0000 (12:37 +0200)]
winpr/sspi/ntlm: fix GetComputerNameExA parameters

On input, the lpnSize [in, out] parameter for GetComputerNameEx()
specifies the total size of the buffer (in characters).
Several functions in ntlm.c were off by one which caused ntlm to fail
if the netbios hostname's strlen was exactly MAX_COMPUTERNAME_LENGTH.

8 years agoMerge pull request #3404 from nfedera/fix-pathmakepath
akallabeth [Tue, 14 Jun 2016 08:20:52 +0000 (10:20 +0200)]
Merge pull request #3404 from nfedera/fix-pathmakepath

winpr: fix PathMakePathA and TestWLog

8 years agowinpr: fix PathMakePathA and TestWLog
Norbert Federa [Mon, 13 Jun 2016 17:19:28 +0000 (19:19 +0200)]
winpr: fix PathMakePathA and TestWLog

PathMakePathA:
- This function had an endless loop if no native delimiter was in the string
- Use SHCreateDirectoryExA on Windows
- Replaced old code with a new implementation

TestWLog:
- Windows has no "/tmp" by default
- Use GetKnownPath(KNOWN_PATH_TEMP) for the WLog "outputfilepath"

8 years agoMerge pull request #3403 from TingPing/freerdp-client.pc
Bernhard Miklautz [Mon, 13 Jun 2016 08:06:51 +0000 (10:06 +0200)]
Merge pull request #3403 from TingPing/freerdp-client.pc

Fix include path in freerdp-client.pc

8 years agoFix include path in freerdp-client.pc
TingPing [Mon, 13 Jun 2016 02:10:00 +0000 (22:10 -0400)]
Fix include path in freerdp-client.pc

8 years agoMerge pull request #3399 from nfedera/fix-winpr-library2
Bernhard Miklautz [Fri, 10 Jun 2016 13:08:49 +0000 (15:08 +0200)]
Merge pull request #3399 from nfedera/fix-winpr-library2

winpr/library: fix GetModuleFileName and tests

8 years agowinpr/library: fix GetModuleFileName and tests
Norbert Federa [Fri, 10 Jun 2016 11:10:39 +0000 (13:10 +0200)]
winpr/library: fix GetModuleFileName and tests

- Use correct SetLastError values in GetModuleFileName
- Fix wrong return codes in GetModuleFileName
- Build the TestLibraryA/TestLibraryB libraries always shared and
  put them in the test output directory
- TestLibraryGetModuleFileName always returned success
- Improve TestLibraryGetModuleFileName to also check last error values
  and insufficient buffer sizes
- Change TestLibraryGetProcAddress and TestLibraryLoadLibrary to load
  the TestLibrary from the test executable's directory

8 years agoMerge pull request #3397 from awakecoding/master
Marc-André Moreau [Wed, 8 Jun 2016 15:03:40 +0000 (11:03 -0400)]
Merge pull request #3397 from awakecoding/master

add missing inet_pton implementation on Windows

8 years agowayk-now: add missing inet_pton implementation on Windows
Marc-André Moreau [Wed, 8 Jun 2016 14:51:58 +0000 (10:51 -0400)]
wayk-now: add missing inet_pton implementation on Windows

8 years agoMerge pull request #3393 from nfedera/fix-winpr-library-wtimer-test
Bernhard Miklautz [Wed, 8 Jun 2016 09:50:43 +0000 (11:50 +0200)]
Merge pull request #3393 from nfedera/fix-winpr-library-wtimer-test

winpr: fix some tests

8 years agoMerge pull request #3394 from nfedera/fix-client-x11-locked-mutex
Hardening [Wed, 8 Jun 2016 06:21:13 +0000 (08:21 +0200)]
Merge pull request #3394 from nfedera/fix-client-x11-locked-mutex

client/x11: don't close locked mutex

8 years agoclient/x11: don't close locked mutex
Norbert Federa [Tue, 7 Jun 2016 16:57:27 +0000 (18:57 +0200)]
client/x11: don't close locked mutex

8 years agowinpr: fix some tests
Norbert Federa [Tue, 7 Jun 2016 15:20:56 +0000 (17:20 +0200)]
winpr: fix some tests

TestNtCreateFile, TestPipeCreateNamedPipeOverlapped
- These tests are currently only expected to succeed on _WIN32
- Also reflect the reverse meaning of this fact in the return values

TestSynchWaitableTimer, TestSynchWaitableTimerAPC:
- These tests are currently expected to fail on __APPLE__
- Also reflect the reverse meaning of this fact in the return values

This logic makes sure that we don't forget to fix the tests if the
corresponding WinPR implementations are fixed.

TestLibrary:
- TestLibraryA and TestLibraryB must always get built as shared libraries

8 years agoMerge pull request #3392 from nfedera/fix-winpr-barrier-deadlock
MartinHaimberger [Tue, 7 Jun 2016 13:33:49 +0000 (15:33 +0200)]
Merge pull request #3392 from nfedera/fix-winpr-barrier-deadlock

winpr/synch: fix barrier deadlock in release build

8 years agowinpr/synch: fix barrier deadlock in release build
Norbert Federa [Tue, 7 Jun 2016 11:06:50 +0000 (13:06 +0200)]
winpr/synch: fix barrier deadlock in release build

Let the compiler know that we're comparing a volatile value.
Otherwise the compiler might nuke the comparison operation
and produce code that will spin endlessly.

8 years agoMerge pull request #3391 from nfedera/fix-initializewaitabletimer-result
Bernhard Miklautz [Tue, 7 Jun 2016 07:34:12 +0000 (09:34 +0200)]
Merge pull request #3391 from nfedera/fix-initializewaitabletimer-result

winpr/synch: fix InitializeWaitableTimer result

8 years agowinpr/synch: fix InitializeWaitableTimer result
Norbert Federa [Mon, 6 Jun 2016 21:06:12 +0000 (23:06 +0200)]
winpr/synch: fix InitializeWaitableTimer result

InitializeWaitableTimer must not reported success if the operating
sytem does not provide the required functionality.

8 years agoMerge pull request #3390 from nfedera/fix-winpr-barrier2
Norbert Federa [Mon, 6 Jun 2016 14:21:39 +0000 (16:21 +0200)]
Merge pull request #3390 from nfedera/fix-winpr-barrier2

winpr/synch: improve barrier test

8 years agowinpr/synch: improve barrier test
Norbert Federa [Mon, 6 Jun 2016 13:33:16 +0000 (15:33 +0200)]
winpr/synch: improve barrier test

The SYNCHRONIZATION_BARRIER_FLAGS_SPIN_ONLY flag caused this test
to run extremely long if the system has very few processors.
Although this is expected (thread starvation) this will cause a
intolerably long execution time for automated tests.
Changed the number of threads to be calculated dyamically based
on the number of processors.
Also do proper cleanup to prevent memory leaks.

8 years agoMerge pull request #3388 from nfedera/fix-winpr-pool-synch
Bernhard Miklautz [Mon, 6 Jun 2016 11:54:39 +0000 (13:54 +0200)]
Merge pull request #3388 from nfedera/fix-winpr-pool-synch

winpr: several pool and synch fixes

8 years agoMerge pull request #3386 from nfedera/fix-winpr-barrier
Bernhard Miklautz [Mon, 6 Jun 2016 11:44:48 +0000 (13:44 +0200)]
Merge pull request #3386 from nfedera/fix-winpr-barrier

winpr/synch: rewrite barrier implementation & test

8 years agoMerge pull request #3389 from nfedera/fix-winpr-synch-timer-queue-segfault
Bernhard Miklautz [Mon, 6 Jun 2016 11:39:36 +0000 (13:39 +0200)]
Merge pull request #3389 from nfedera/fix-winpr-synch-timer-queue-segfault

winpr/synch: fix timerqueue segfault

8 years agowinpr/synch: fix timerqueue segfault
Norbert Federa [Mon, 6 Jun 2016 11:18:00 +0000 (13:18 +0200)]
winpr/synch: fix timerqueue segfault

The current experimental/incomplete WinPR timer queue implementation
has several race conditions.
This commit fixes a segfault caused by not unklinking freed timers
from the timer queue timers list.

8 years agoMerge pull request #3387 from nfedera/fix-wfreerdp-verify-cert-callback
akallabeth [Mon, 6 Jun 2016 07:23:41 +0000 (09:23 +0200)]
Merge pull request #3387 from nfedera/fix-wfreerdp-verify-cert-callback

wfreerdp: fix invalid VerifyCertificate callback

8 years agowfreerdp: fix invalid VerifyCertificate callback
Norbert Federa [Sat, 4 Jun 2016 15:13:07 +0000 (17:13 +0200)]
wfreerdp: fix invalid VerifyCertificate callback

8 years agowinpr: several pool and synch fixes
Norbert Federa [Sat, 4 Jun 2016 15:04:12 +0000 (17:04 +0200)]
winpr: several pool and synch fixes

pool:
- the winpr implementation fallback was not used on older windows editions
- drop useless and conflicting TP_CALLBACK_ENVIRON_V3
- fix race conditions by using use proper one-time initialization
- on win32 WinPR tried to load several pool/callback_environment functions
  from kernel32.dll but since these are defined as inline functions in the
  windows headers, no windows edition has ever exported them in any dll.
- removed callback_environment.c and added corresponding static inline
  function to pool.h
- fix segfault in TestPoolWork: CloseThreadpoolWork() must not be called
  if there is a cleanup group associated with the work object since calling
  CloseThreadpoolCleanupGroupMember() already releases the work object

sync:
- The windows headers incorrectly define InitializeCriticalEx support if
  _WIN32_WINNT >= 0x0403 instead of >= 0x0600 (Vista)
- created a compatible define to deal with this issue

8 years agowinpr/synch/barrier: fix return value and test
Norbert Federa [Sat, 4 Jun 2016 11:40:01 +0000 (13:40 +0200)]
winpr/synch/barrier: fix return value and test

- According to the msdn docs DeleteSynchronizationBarrier always returns TRUE
- Added additional error checks to the barrier test

8 years agowinpr/synch: add spinning support to barrier
Norbert Federa [Fri, 3 Jun 2016 22:55:27 +0000 (00:55 +0200)]
winpr/synch: add spinning support to barrier

Implemented the SYNCHRONIZATION_BARRIER_FLAGS_BLOCK_ONLY and
SYNCHRONIZATION_BARRIER_FLAGS_SPIN_ONLY flags.

8 years agowinpr/synch: rewrite barrier implementation & test
Norbert Federa [Fri, 3 Jun 2016 16:56:36 +0000 (18:56 +0200)]
winpr/synch: rewrite barrier implementation & test

The synchronization barrier test as well as the actual WinPR
implementation were completely broken.

8 years agoMerge pull request #3381 from nfedera/fix-winpr-misc
Bernhard Miklautz [Fri, 3 Jun 2016 16:53:14 +0000 (18:53 +0200)]
Merge pull request #3381 from nfedera/fix-winpr-misc

fix race conditions, tests and some invalid return values

8 years agowinpr/thread: fix SwitchToThread
Norbert Federa [Thu, 2 Jun 2016 13:38:57 +0000 (15:38 +0200)]
winpr/thread: fix SwitchToThread

On some operating systems sched_yield is a stub returning returning -1.
In that case use usleep which should at least trigger a context switch
if any thread is waiting.

8 years agoMerge pull request #3382 from giox069/master
Bernhard Miklautz [Thu, 2 Jun 2016 08:49:42 +0000 (10:49 +0200)]
Merge pull request #3382 from giox069/master

Fix some memory leaks in freerdp_settings_free()

8 years agoFix some memory leaks in freerdp_settings_free()
Giovanni Panozzo [Thu, 2 Jun 2016 08:23:28 +0000 (10:23 +0200)]
Fix some memory leaks in freerdp_settings_free()

8 years agofix race conditions, tests and some invalid return values
Norbert Federa [Wed, 1 Jun 2016 14:26:26 +0000 (16:26 +0200)]
fix race conditions, tests and some invalid return values

Since the current winpr implementation for overlapped operations is
incomplete and buggy, all affected functions will now fail if they are
called with a set FILE_FLAG_OVERLAPPED flag or a non-null pointer to
a OVERLAPPED structure.

winpr/nt:
- use proper one-time initialization on win32
- fix TestNtCreateFile
- fix broken/incomplete _RtlAnsiStringToUnicodeString
- unimplemented functions return appropriate error codes

winpr/pipe:
- improved TestPipeCreateNamedPipe
- rewrite the completely broken TestPipeCreateNamedPipeOverlapped test

rdtk:
- improve test and don't blindly return success

winpr/synch:
- fix race condition in TestSynchTimerQueue

winpr/ssspi:
- fix TestEnumerateSecurityPackages printf output
- fix TestQuerySecurityPackageInfo printf output

winpr/environment:
- fix GetEnvironmentStrings printf output

winpr/comm:
- unimplemented functions return appropriate error codes

winpr/io:
- unimplemented functions return appropriate error codes

winpr/thread:
- implement SwitchToThread() via sched_yield()

8 years agoMerge pull request #3379 from nfedera/fix-winpr-wtsapi
Norbert Federa [Tue, 31 May 2016 07:41:09 +0000 (09:41 +0200)]
Merge pull request #3379 from nfedera/fix-winpr-wtsapi

winpr/wtsapi: fixed race conditions and tests

8 years agoMerge pull request #3376 from realjiangms/fix_client_gfx
akallabeth [Tue, 31 May 2016 07:37:31 +0000 (09:37 +0200)]
Merge pull request #3376 from realjiangms/fix_client_gfx

channels/rdpgfx: Fix for gfx client

8 years agoMerge pull request #3371 from realjiangms/fix_x11_shadow_race
Bernhard Miklautz [Mon, 30 May 2016 17:25:20 +0000 (19:25 +0200)]
Merge pull request #3371 from realjiangms/fix_x11_shadow_race

Server/shadow: Protect X operations on shared subystem X11 display with X11 display lock

8 years agowinpr/wtsapi: fixed race conditions and tests
Norbert Federa [Mon, 30 May 2016 15:54:59 +0000 (17:54 +0200)]
winpr/wtsapi: fixed race conditions and tests

8 years agoMerge pull request #3377 from nfedera/fix-channel-name-parsing
MartinHaimberger [Mon, 30 May 2016 12:59:34 +0000 (14:59 +0200)]
Merge pull request #3377 from nfedera/fix-channel-name-parsing

freerdp/core/gcc: channel name hardening

8 years agofreerdp/core/gcc: channel name hardening
Norbert Federa [Mon, 30 May 2016 12:40:23 +0000 (14:40 +0200)]
freerdp/core/gcc: channel name hardening

According to [MS-RDPBCGR 2.2.1.3.4.1 Channel Definition Structure]
the channel name must be an 8-byte array containing a null-terminated
collection of seven ANSI characters that uniquely identify the channel.

We did not check if the transmitted name was null-terminated which
could have the usual severe effects on stabiliy and security since
the channel name is used in several functions expecting a null-
terminated string (strlen, printf, etc.)

8 years agoMerge pull request #3375 from nfedera/fix-sizet-format-segfaults
Bernhard Miklautz [Mon, 30 May 2016 11:00:32 +0000 (13:00 +0200)]
Merge pull request #3375 from nfedera/fix-sizet-format-segfaults

fix segfaults casused by size_t format specifier

8 years agochannels/rdpgfx: Make freerdp_client_codecs_prepare calls codec reset. It fix broken...
zihao.jiang [Sat, 28 May 2016 18:13:47 +0000 (02:13 +0800)]
channels/rdpgfx: Make freerdp_client_codecs_prepare calls codec reset. It fix broken h264 client from #3328. Also it doesn't make sense that we don't need width and height for codec initialization while we need them for codec reset

8 years agofix segfaults casused by size_t format specifier
Norbert Federa [Fri, 27 May 2016 13:53:49 +0000 (15:53 +0200)]
fix segfaults casused by size_t format specifier

win32/msvc cc does not recognize the %z format specifier which caused
invalid references and segfaults on win32.
Until FreeRDP gets format specifier macros we'll cast size_t to
unsigned long and use the %lu specifier.

Also simplified winpr_backtrace_symbols() a little bit and fixed it
to allocate the correct amount of bytes for the return buffer.

8 years agoMerge pull request #3372 from nfedera/fix-winpr-test-library
Hardening [Fri, 27 May 2016 12:53:12 +0000 (14:53 +0200)]
Merge pull request #3372 from nfedera/fix-winpr-test-library

winpr/library: fix win32 test and some cleanup

8 years agowinpr/library: fix win32 test and some cleanup
Norbert Federa [Thu, 26 May 2016 10:19:36 +0000 (12:19 +0200)]
winpr/library: fix win32 test and some cleanup

On Windows we seem to have to load the TestLibrary[AB] test libraries
from in same folder the test executable runs.

Also removed the empty RemoveDllDirectory, SetDefaultDllDirectories,
AddDllDirectory tests and the redundant FreeLibrary test.

TestLibrary now works and succeeds on Win32.

sadasd

8 years agoMerge pull request #3374 from nfedera/fix-winpr-path
Hardening [Fri, 27 May 2016 09:19:50 +0000 (11:19 +0200)]
Merge pull request #3374 from nfedera/fix-winpr-path

winpr/path: fix PathCchFindExtensionA and more

8 years agowinpr/path: fix PathCchFindExtensionA and more
Norbert Federa [Thu, 26 May 2016 16:36:02 +0000 (18:36 +0200)]
winpr/path: fix PathCchFindExtensionA and more

- PathCchFindExtensionA had an off-by-one error when verifying the
  required null termination
- TestPathCchFindExtension used unicode strings when testing the
  *A (ASCII) functions
- The PathAllocCombineW implementation (which is still buggy has
  hell) used strlen to calculate the lenght of unicode strings

TestPath now succeeds on WIN32

8 years agoMerge pull request #3373 from nfedera/fix-winpr-test-pipe
Hardening [Thu, 26 May 2016 12:07:48 +0000 (14:07 +0200)]
Merge pull request #3373 from nfedera/fix-winpr-test-pipe

winpr/pipe: fix CreateNamedPipe test

8 years agowinpr/pipe: fix CreateNamedPipe test
Norbert Federa [Thu, 26 May 2016 11:52:30 +0000 (13:52 +0200)]
winpr/pipe: fix CreateNamedPipe test

GetLastError() was not always checked for ERROR_PIPE_CONNECTED which
indicates success if ConnectNamePipe returns FALSE.

TestPipe now also succeeds on Win32

8 years agoServer/shadow: Protect X operations on shared subystem X11 display with X11 display...
zihao.jiang [Wed, 25 May 2016 16:20:37 +0000 (00:20 +0800)]
Server/shadow: Protect X operations on shared subystem X11 display with X11 display lock

8 years agoMerge pull request #3369 from realjiangms/fix_mouseback_2796
Bernhard Miklautz [Wed, 25 May 2016 15:25:07 +0000 (17:25 +0200)]
Merge pull request #3369 from realjiangms/fix_mouseback_2796

Server/shadow: Fix issue 2796. Mouse cursor draw back issue

8 years agoServer/shadow: Fix issue 2796. Mouse cursor draw back issue
zihao.jiang [Wed, 25 May 2016 09:24:30 +0000 (17:24 +0800)]
Server/shadow: Fix issue 2796. Mouse cursor draw back issue

8 years agoMerge pull request #3370 from nfedera/fix-winpr-test-thread-createprocess
Bernhard Miklautz [Wed, 25 May 2016 14:39:22 +0000 (16:39 +0200)]
Merge pull request #3370 from nfedera/fix-winpr-test-thread-createprocess

winpr/thread: fix TestThreadCreateProcess

8 years agowinpr/thread: fix TestThreadCreateProcess
Norbert Federa [Wed, 25 May 2016 13:47:58 +0000 (15:47 +0200)]
winpr/thread: fix TestThreadCreateProcess

On WIN32 TestThread now works and is expected to succeed

8 years agoMerge pull request #3365 from nfedera/fix-winpr-synch-tests
MartinHaimberger [Wed, 25 May 2016 09:08:31 +0000 (11:08 +0200)]
Merge pull request #3365 from nfedera/fix-winpr-synch-tests

winpr/synch: fix tests

8 years agowinpr/synch: fix tests
Norbert Federa [Tue, 24 May 2016 20:33:27 +0000 (22:33 +0200)]
winpr/synch: fix tests

TestSynchTimerQueue:
- fixed race condition

TestSynchWaitableTimerAPC:
- Use WaitForSingleObjectEx since the thread must be in an alterable state

TestSynch is now expected to succeed on WIN32

8 years agoMerge pull request #3363 from nfedera/fix-mutex-implementation
akallabeth [Tue, 24 May 2016 13:41:45 +0000 (15:41 +0200)]
Merge pull request #3363 from nfedera/fix-mutex-implementation

winpr/synch: fix mutex implementation

8 years agowinpr/synch: fix mutex implementation
Norbert Federa [Tue, 24 May 2016 11:35:11 +0000 (13:35 +0200)]
winpr/synch: fix mutex implementation

- Mutex is recursive on Windows; as a consequence we have to use
  the pthread PTHREAD_MUTEX_RECURSIVE type
- Adapt MutexCloseHandle accordingly
- ReleaseMutex returned TRUE even if pthread_mutex_unlock failed
- Fixed and improved the TestSynchMutex ctest

8 years agoMerge pull request #3357 from realjiangms/fix_rdpsnd_race
akallabeth [Mon, 23 May 2016 14:21:49 +0000 (16:21 +0200)]
Merge pull request #3357 from realjiangms/fix_rdpsnd_race

shadow/rdpsnd: Fix race condition in rdpsnd channel server.

8 years agoMerge pull request #3359 from bmiklautz/eventfd_leak
Martin Fleisz [Mon, 23 May 2016 11:38:18 +0000 (13:38 +0200)]
Merge pull request #3359 from bmiklautz/eventfd_leak

winpr/event: fix file descriptor leak

8 years agoMerge pull request #3349 from byteboon/master
akallabeth [Mon, 23 May 2016 11:22:33 +0000 (13:22 +0200)]
Merge pull request #3349 from byteboon/master

kerberos authentication fix

8 years agowinpr/event: fix file descriptor leak
Bernhard Miklautz [Mon, 23 May 2016 11:04:44 +0000 (13:04 +0200)]
winpr/event: fix file descriptor leak

SetEventFileDescriptor overrides the internal file descriptor of the
event but didn't close it. Now if the descriptor is closed if it isn't
marked as attached.

8 years agoshadow/rdpsnd: Fix race condition in rdpsnd channel server. The output buffer and...
zihao.jiang [Thu, 19 May 2016 17:02:08 +0000 (01:02 +0800)]
shadow/rdpsnd: Fix race condition in rdpsnd channel server. The output buffer and format parameters are not protected. This cause some data inconsistence if rdpsnd has own thread

8 years agoMerge pull request #3356 from rinov/master
Hardening [Thu, 19 May 2016 21:39:49 +0000 (23:39 +0200)]
Merge pull request #3356 from rinov/master

Update mf_mountain_lion.c

8 years agoUpdate mf_mountain_lion.c
rinov [Thu, 19 May 2016 16:17:49 +0000 (01:17 +0900)]
Update mf_mountain_lion.c

Remove duplicate return statement in mf_mlion_stop_getting_screen_updates()
This change is no impact anywhere.

8 years agoMerge pull request #3353 from bmiklautz/no_shared_libs
Norbert Federa [Wed, 18 May 2016 15:30:25 +0000 (17:30 +0200)]
Merge pull request #3353 from bmiklautz/no_shared_libs

build: fix builds with -DBUILD_SHARED_LIBS=OFF

8 years agobuild: fix builds with -DBUILD_SHARED_LIBS=OFF
Bernhard Miklautz [Wed, 18 May 2016 15:13:45 +0000 (17:13 +0200)]
build: fix builds with -DBUILD_SHARED_LIBS=OFF

When no shared libs are built is required to export all generated
archive files otherwise programs linking against
freerdp-client/freerdp-server might miss symbols.

Fixes #3350

8 years agofixed kerberos authentication
byteboon [Mon, 16 May 2016 16:53:38 +0000 (09:53 -0700)]
fixed kerberos authentication

Details: cbSecurityTrailer was assumed to be a fixed length for all signatures, however for Kerberos authentication the signature may generate smaller than this value

8 years agoMerge pull request #3333 from akallabeth/memleak_fixes
Hardening [Fri, 13 May 2016 09:32:48 +0000 (11:32 +0200)]
Merge pull request #3333 from akallabeth/memleak_fixes

Memleak fixes

8 years agoMerge pull request #3340 from rjcorrig/kb3153731
Bernhard Miklautz [Fri, 13 May 2016 07:41:42 +0000 (09:41 +0200)]
Merge pull request #3340 from rjcorrig/kb3153731

winpr: KB3153731: May 2016 DST update for Azerbaijan, Chile, Haiti and Morocco

8 years agoMerge pull request #3341 from awakecoding/xcrush_fix
Marc-André Moreau [Thu, 12 May 2016 18:38:23 +0000 (14:38 -0400)]
Merge pull request #3341 from awakecoding/xcrush_fix

proper xcrush context reset fix

8 years agolibfreerdp-codec: make proper xcrush context reset fix
Marc-André Moreau [Thu, 12 May 2016 18:24:53 +0000 (14:24 -0400)]
libfreerdp-codec: make proper xcrush context reset fix

8 years agoKB3153731: May 2016 DST update for Azerbaijan, Chile, Haiti and Morocco
Robert Corrigan [Thu, 12 May 2016 17:12:24 +0000 (13:12 -0400)]
KB3153731: May 2016 DST update for Azerbaijan, Chile, Haiti and Morocco

8 years agoMerge pull request #3335 from bmiklautz/wfreerdp_naming
Martin Fleisz [Thu, 12 May 2016 15:48:40 +0000 (17:48 +0200)]
Merge pull request #3335 from bmiklautz/wfreerdp_naming

wfreerdp: fix name build without client interface

8 years agoMerge pull request #3339 from awakecoding/xcrush_fix
Marc-André Moreau [Thu, 12 May 2016 13:41:57 +0000 (09:41 -0400)]
Merge pull request #3339 from awakecoding/xcrush_fix

libfreerdp-codec: fix xcrush decompression, revert remote control fix

8 years agolibfreerdp-codec: fix xcrush decompression, revert remote control fix
Marc-André Moreau [Thu, 12 May 2016 13:22:24 +0000 (09:22 -0400)]
libfreerdp-codec: fix xcrush decompression, revert remote control fix

8 years agowfreerdp: fix name build without client interface
Bernhard Miklautz [Thu, 12 May 2016 09:47:10 +0000 (11:47 +0200)]
wfreerdp: fix name build without client interface

When built without client-interface the binary should be called wfreerdp
as well (currently it is wfreerdp-client)

8 years agoFixed memory leaks.
Armin Novak [Thu, 12 May 2016 08:01:30 +0000 (10:01 +0200)]
Fixed memory leaks.

8 years agoFixed NULL pointer access.
Armin Novak [Thu, 12 May 2016 07:28:12 +0000 (09:28 +0200)]
Fixed NULL pointer access.

8 years agoMerge pull request #3329 from awakecoding/hv_fix
Marc-André Moreau [Wed, 11 May 2016 21:00:35 +0000 (17:00 -0400)]
Merge pull request #3329 from awakecoding/hv_fix

freerdp: fix Hyper-V connectivity, fix issues #2421 and #3325

8 years agoMerge pull request #3330 from awakecoding/xcrush_fix
Marc-André Moreau [Wed, 11 May 2016 20:47:50 +0000 (16:47 -0400)]
Merge pull request #3330 from awakecoding/xcrush_fix

xcrush context flush fix

8 years agolibfreerdp-codec: fix xcrush context flush
Marc-André Moreau [Wed, 11 May 2016 20:35:20 +0000 (16:35 -0400)]
libfreerdp-codec: fix xcrush context flush

8 years agofreerdp: fix Hyper-V connectivity, fix issues #2421 and #3325
Marc-André Moreau [Wed, 11 May 2016 19:52:36 +0000 (15:52 -0400)]
freerdp: fix Hyper-V connectivity, fix issues #2421 and #3325