Hardening
dbb67cdf7f
Merge pull request #2642 from hardening/shadow_fix
...
Specify to skip compression with remoteFx frames
2015-05-28 22:58:15 +02:00
Hardening
2ec3734607
Merge pull request #2659 from oshogbo/unused
...
Remove unused variable.
2015-05-28 22:57:17 +02:00
Hardening
ca274b6b49
Merge pull request #2660 from nfedera/fix-tsmf-channel
...
tsmf: fix invalid check and a potential segfault
2015-05-28 11:09:07 +02:00
Hardening
f7f58f64c8
Merge pull request #2646 from eledoux/thread_list
...
fixed a synchronization issue on thread_list
2015-05-28 10:51:53 +02:00
Norbert Federa
8e70012d65
tsmf: fix invalid check and a potential segfault
...
This resuscitates tsmf which was accidently broken in commit f8120919
2015-05-28 10:49:38 +02:00
Emmanuel Ledoux
de1a21eadd
winpr-thread: added HP's copyright
2015-05-27 18:24:56 +02:00
Emmanuel Ledoux
206714a270
winpr-thread: thread_list's synchronization based on a pthread_cond_t
2015-05-27 18:15:17 +02:00
Mariusz Zaborski
461497b8a5
Remove unused variable.
2015-05-27 16:04:06 +02:00
David FORT
85c350f5da
Fix for #2657
2015-05-27 15:13:43 +02:00
Marc-André Moreau
a2e0746f15
Merge pull request #2653 from bmiklautz/lzcnt
...
winpr: add intrin.h
2015-05-27 09:00:22 -04:00
Bernhard Miklautz
03ec9bed93
winpr/test: incorporate comments from pull request
...
* Fix TestIntrinsics - always returned 0
* rename TestWinpr to TestWinPR for consistency
* update gitignores accordingly
2015-05-27 10:32:08 +02:00
Emmanuel Ledoux
f74cd12df2
winpr-thread: a better error message and comments about thread_list
2015-05-26 18:15:57 +02:00
Emmanuel Ledoux
56f34582c7
winpr-thread: added an assertion to enforce that thread_list is correctly set
2015-05-26 17:55:27 +02:00
Emmanuel Ledoux
93127e0a7a
winpr-thread: thread_list's synchronization based on an Event
2015-05-26 17:40:34 +02:00
Bernhard Miklautz
f9c7e03044
winpr: add intrin.h
...
Exposing lzcnt in crt.h might causes compiler errors (redefinition) with
recent versions of gcc (>=4.9) when winpr is included in other projects.
As lzcnt isn't part of crt according to MSDN and also shouldn't be
exported by default it was moved to intrin.h.
The related test was also moved to the top level directory of winpr.
2015-05-26 16:41:29 +02:00
Mariusz Zaborski
951dbd88de
In c file the name is channelId.
2015-05-26 16:12:41 +02:00
Hardening
58b1995619
Merge pull request #2654 from oshogbo/typos
...
Typo
2015-05-26 16:10:41 +02:00
Hardening
83d5b26a46
Merge pull request #2652 from nfedera/fix-ios-context-new
...
client/iOS: fix ios_context_new
2015-05-26 08:39:08 +02:00
Norbert Federa
8a53e5ee68
client/iOS: fix ios_context_new
...
- fixed wrong signature since ContextNew is BOOL now
- added error checking
2015-05-25 22:21:53 +02:00
Jakub Adam
dea741fca9
shadow_screen: allow sub-rectangle to span multiple monitors
...
When we share a sub-rectangle of our desktop, allow it to span over
multiple monitors. Previously it was possible to export an area larger
than one display, however the contents were always cropped to
the boundaries of the selected monitor and the rest was visible for
the client only as a black area .
2015-05-25 14:19:34 +02:00
Mariusz Zaborski
80958751e4
Add check to protect memcpy(3) from using NULL pointer.
...
The ntlm_construct_challenge_target_info function can potentially pass NULL as
argument to the ntlm_av_pair_add function (for example DnsDomainName.Buffer).
This NULL finally lands in the CopyMemory (which is macro to the memcpy(3)
function) which can't handle NULL.
2015-05-25 08:32:48 +02:00
Marc-André Moreau
36cb1e6dc9
Merge pull request #2639 from awakecoding/master
...
WLog, server-side rdpdr, remote assistance, byteswap, etc
2015-05-22 14:30:11 -04:00
Marc-André Moreau
649d49549e
Merge pull request #2644 from xhaakon/shadow-server-disposal
...
shadow_client: dispose encomsp and remdesk
2015-05-22 14:15:31 -04:00
Marc-André Moreau
30fc814efa
Merge pull request #2643 from xhaakon/shadow-server-client-disconnect
...
Don't dispose shadow server before all clients have disconnected
2015-05-22 14:15:09 -04:00
Marc-André Moreau
35e26020aa
freerdp: patch multiple leaks and OOM errors
2015-05-22 14:14:57 -04:00
Emmanuel Ledoux
f94ab0033b
winpr-thread: better error message upon a failure of TestThreadExitThread
2015-05-22 19:17:30 +02:00
Emmanuel Ledoux
6f5de27081
winpr-thread:
...
- added the unit test: TestThreadExitThread
- fix: ensure thread_list to be up to date before to call ExitThread()
- possibly resolved: Problems with serial redirection #2389
2015-05-22 18:28:10 +02:00
Marc-André Moreau
7a06640c16
libwinpr-shell: use getpwnam_r
2015-05-22 10:03:21 -04:00
Jakub Adam
bc1bbe61a8
shadow_client: dispose encomsp and remdesk
...
Their threads were kept running after the client's exit.
2015-05-22 14:01:29 +02:00
Jakub Adam
9e60246a8c
Don't dispose shadow server before all clients have disconnected
...
Ensure all client threads are disconnected before we stop the server
thread and thus make it available for deletion. We do this because
shadow_client_context_free() accesses rdpShadowServer structure, which
we have to keep alive as long as it is needed.
Calling shadow_client_context_free() after shadow_server_stop() and
shadow_server_free() were called may have caused an application crash.
2015-05-22 13:56:57 +02:00
Jakub Adam
73888a57c2
Ensure threads have finished using a barrier before releasing it
...
MSDN documentation says it is ensured that all threads in the barrier
have finished using it before allowing the barrier to be released in
DeleteSynchronizationBarrier(). The winpr re-implementation wasn't
keeping to that requirement, which was causing occasional crashes
when shadow client tried to access already freed barrier structure.
The crash was occuring in winpr_Handle_cleanup() after finished
waiting on a barrier's event.
2015-05-22 13:36:15 +02:00
Bernhard Miklautz
7a1485a2e4
Merge pull request #2638 from kwitaszczyk/master
...
Assign peer to settings when a new RDP module is being initialized.
2015-05-22 13:36:00 +02:00
David FORT
b01d64d386
Specify to skip compression with remoteFx frames
2015-05-22 11:12:41 +02:00
Hardening
ff1eb9d64d
Merge pull request #2640 from xsumbe00/master
...
winsock.c Solaris build fixes
2015-05-22 09:56:59 +02:00
Marc-André Moreau
89642923d1
channels/rdpdr: add more server-side error checking
2015-05-21 16:50:29 -04:00
Petr Sumbera
fe5ce30f92
winsock.c Solaris build fixes
2015-05-21 13:24:03 -07:00
Marc-André Moreau
d8460d14e0
channels/rdpdr: treat OOM and status failures in server-side code
2015-05-21 16:08:46 -04:00
Marc-André Moreau
aa34c8a7d5
channels/rdpdr: cleanup server-side rdpdr code
2015-05-21 14:33:38 -04:00
Marc-André Moreau
5526348079
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2015-05-21 13:29:59 -04:00
Marc-André Moreau
c64be497b8
libwinpr-utils: update backtrace utils
2015-05-21 13:25:35 -04:00
Konrad Witaszczyk
8797eef9b9
Assign peer to settings when a new RDP module is being initialized.
2015-05-21 16:54:19 +02:00
Bernhard Miklautz
e6891b7a78
Merge pull request #2637 from nfedera/fix-shadow_client_context_cleanup
...
shadow/client context cleanup and unused vars fix
2015-05-21 16:21:09 +02:00
Marc-André Moreau
b9c1cddc2e
Merge pull request #2583 from bceverly/OpenBSD-cleanup
...
Two minor source code changes to remove warnings
2015-05-21 10:17:54 -04:00
Norbert Federa
535a4352a7
shadow/client context cleanup and unused vars fix
2015-05-21 16:05:05 +02:00
Norbert Federa
cd0a8e0506
Merge pull request #2630 from hardening/new_2616
...
Add checks for some XXX_New and XXX_Add functions
2015-05-21 16:04:26 +02:00
Marc-André Moreau
ebf863f2eb
Merge pull request #2557 from realjiangms/shadow_fix_hang2395
...
shadow fix multi-client hang
2015-05-20 16:26:31 -04:00
Hardening
58602c7d2e
Merge pull request #2632 from akallabeth/client_bandwidth_measurement_callback
...
Added client bandwidth measurement result callback.
2015-05-20 21:19:20 +02:00
David FORT
b83af4c059
Fixed declaration of xf_event_action_script_init()
2015-05-20 21:01:46 +02:00
David FORT
29d372480a
Take in account nfedera's review
2015-05-20 19:19:50 +02:00
Bryan Everly
a3a3efe31e
Fixed mistake with bitwise operator in previous two commits
2015-05-20 12:17:05 -04:00