MartinHaimberger
282f15795d
Merge pull request #2762 from akallabeth/handle_write_event
...
Add write event support to HANDLE
2015-07-03 11:36:00 +02:00
Armin Novak
c21de0dae6
Fixed pr comments.
2015-07-03 11:13:48 +02:00
MartinHaimberger
83641a3a97
Merge pull request #2761 from akallabeth/sample_server_port_arg
...
Updated sample server.
2015-07-03 10:44:35 +02:00
Armin Novak
82da97e606
Updated sample server.
...
* Added new command line argument --port to allow starting the
sample server on a port different than default 3389.
* Using GetKnownSubPath now to determine location of temporary
directory for server socket.
* Using distinct server socket files for each port.
2015-07-03 10:04:24 +02:00
Armin Novak
d18b0fbeb4
Handle API updated.
2015-07-03 09:52:52 +02:00
Armin Novak
77204aa6b6
WSAEventSelect: Handle lNetworkEvents == 0
...
WSAEventSelect did ignore the lNetworkEvents argument.
In case this argument is 0, the non blocking socket must
be set to blocking again to mimic windows behavior.
2015-07-03 09:29:36 +02:00
Armin Novak
6243a9374b
Added write event support to handle functions.
...
Allows the WinPR HANDLE functions WaitForSingleObject and
WaitForMultipleObjects to signal in case of write events.
This is used by CreateFileDescriptor and SetEventFileDescriptor,
which got an API change accomodating for this new feature.
2015-07-03 09:29:18 +02:00
Armin Novak
7dc96c412f
Added convenience function winpr_log_backtrace.
2015-07-03 09:22:02 +02:00
Bernhard Miklautz
f24240630d
Merge pull request #2759 from bmiklautz/fix/cliprdp
...
x11/cliprdr: handle empty format names
2015-07-02 16:28:55 +02:00
Bernhard Miklautz
b6a799e5d0
x11/cliprdr: handle empty format names
...
The recently added strdup checks ignored the fact that format names
can be NULL.
2015-07-02 15:39:35 +02:00
Hardening
c8a71a2695
Merge pull request #2747 from ilammy/egfx-missing-events
...
Do not discard events when updating EGFX surface mapping
2015-07-02 15:08:31 +02:00
Hardening
87c5377f42
Merge pull request #2758 from bmiklautz/fix/CreateProcess
...
CreateProcess misc fixes
2015-07-02 13:11:06 +02:00
Bernhard Miklautz
c7adb569ff
CreateProcess: fix setting of default handler
...
If SA_SIGINFO isn't set in the flags sa_handler is used
instead of sa_sigaction.
This fixes also the compiler warning:
FreeRDP/winpr/libwinpr/thread/process.c: In function ‘_CreateProcessExA’:
FreeRDP/winpr/libwinpr/thread/process.c:282:20: warning: assignment from
incompatible pointer type [enabled by default]
2015-07-02 12:25:48 +02:00
Bernhard Miklautz
be53e9e029
CreateProcess: two fixes
...
* change to lpCurrentDirectory if set even if no token was supplied
* fix wrong check - add missing !
This was part of akallabeth's PR #2714 .
2015-07-02 12:05:46 +02:00
Bernhard Miklautz
fedd59816b
Merge pull request #2757 from nfedera/nf-fix-createprocess-signals
...
winpr: fix CreateProcess signal handler issues
2015-07-02 12:02:51 +02:00
Norbert Federa
c84e90bf06
winpr: fix CreateProcess signal handler issues
...
The calling thread of CreateProcess can be in any library and
can have arbitrary signal masks and handlers.
We now save the caller's mask and block all signals before forking.
After fork:
- child resets the handlers and unblocks all signals.
- parent restores the caller's original signal mask.
2015-07-02 11:28:06 +02:00
Hardening
873a25621d
Merge pull request #2754 from akallabeth/mixed_code
...
Fixed mixed declarations and code.
2015-07-02 09:27:27 +02:00
Hardening
ac93b26ba8
Merge pull request #2750 from realjiangms/fix_win32_wsaevent
...
Fix event created for WSAEventSelect
2015-07-02 09:26:13 +02:00
Bernhard Miklautz
b89ea3d902
Merge pull request #2753 from akallabeth/nla_null_auth_fix
...
nla: Fixed handling of optional TSPasswordCreds field.
2015-07-01 16:23:00 +02:00
Armin Novak
78eeb861d5
Fixed mixed declarations and code.
2015-07-01 16:20:56 +02:00
Armin Novak
3a9db563fd
NLA: Fixed length check.
2015-07-01 16:05:11 +02:00
Armin Novak
8479c824fd
Fixed handling of optional TSPasswordCreds field.
2015-07-01 15:30:38 +02:00
Martin Fleisz
59e2801848
Merge pull request #2752 from akallabeth/nla_user_length_fix
...
NLA decrypt credentials fixed.
2015-07-01 14:49:00 +02:00
Armin Novak
6c0e1af4af
NLA decrypt credentials fixed.
2015-07-01 14:31:55 +02:00
Norbert Federa
1c43a6e115
Merge pull request #2738 from bmiklautz/ffuncs
...
hardening: check fread and fwrite return values
2015-07-01 13:02:32 +02:00
Bernhard Miklautz
798df32fd9
Integrate pull request feedback
...
* unify fwrite usage - set nmemb to 1 and the size to the size to write.
2015-07-01 12:22:32 +02:00
zihao.jiang
75407edf37
Fix event created for WSAEventSelect: The event we pass to WSAEventSelect should be WSAEVENT instead of normal event.
...
From MSDN, it looks same as CreateEvent(NULL, FALSE, FALSE, NULL):
The WSACreateEvent function creates a manual-reset event object with an initial state of nonsignaled. The event object is unnamed.
However they are not really equivalent. When we use normal event, the WSAEventSelect still works but the event appears to be 'auto-reset'.
2015-07-01 01:52:59 +08:00
ilammy
1012bccdaa
client/x11: do not discard events when updating EGFX surface mapping
...
Passing True to XSync() discards any pending X11 events. Occasionally
this caused ButtonRelease or KeyRelease to be lost and not forwarded
to the remote computed, leading to stuck keys and buttons.
This should resolve issue #2391
2015-06-30 12:48:08 +03:00
Bernhard Miklautz
cc4b5f98c3
Merge pull request #2745 from mfleisz/fix_makecert
...
makecert: Fix double free crashes
2015-06-30 10:46:38 +02:00
Martin Fleisz
d64195d46a
makecert: Fix incorrect return value check
2015-06-30 08:14:28 +02:00
Martin Fleisz
15473557da
makecert: Formatting
2015-06-29 18:10:59 +02:00
Martin Fleisz
bdf02d631e
makecert: Add strdup checks
2015-06-29 18:07:26 +02:00
Martin Fleisz
5632773808
makecert: Fix double free crashes
2015-06-29 17:49:13 +02:00
Bernhard Miklautz
5f2fa8a5e3
Merge pull request #2740 from realjiangms/shadow_fix_cert_2708
...
server/shadow: Fix incorrect handle of makecert_context_process.
2015-06-29 11:28:06 +02:00
Marc-André Moreau
084b365be7
Merge pull request #2741 from awakecoding/master
...
egfx progressive codec frame handling
2015-06-28 15:14:04 -04:00
zihao.jiang
c7b598bc4d
server/shadow: Fix incorrect handle of makecert_context_process.
...
Also fix another typo for makecert_context_set_output_file_name
2015-06-29 02:16:31 +08:00
Marc-André Moreau
a8e62e938a
libfreerdp-codec: fix egfx artifacts resulting from incorrect handling of rects inside the same egfx frame
2015-06-28 13:57:46 -04:00
Bernhard Miklautz
1cee185e3c
hardening: check fread and fwrite return values
2015-06-26 20:38:30 +02:00
Marc-André Moreau
5ec19d2045
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2015-06-26 14:00:03 -04:00
Marc-André Moreau
24ed6b06cc
channels/rdpgfx: update debug output
2015-06-26 13:59:41 -04:00
Norbert Federa
20878e50fe
Merge pull request #2724 from bmiklautz/leak_fix
...
Fix leaks in certificate and identity handling
2015-06-26 15:30:00 +02:00
Marc-André Moreau
cf2f4bf9cf
Merge pull request #2737 from nfedera/nf-fix-gdi-return-value-weirdness
...
libfreerdp/gdi: fixed gdi return value madness
2015-06-26 09:24:08 -04:00
Bernhard Miklautz
77ef5a80de
nla: clear identity memory before releasing
2015-06-26 15:12:33 +02:00
Norbert Federa
ac95b7274e
Merge pull request #2727 from akallabeth/leak_fixes_reformat
...
Fixed leaks, NULL dereferences and broken init.
2015-06-26 15:01:08 +02:00
Norbert Federa
bb9536b867
libfreerdp/gdi: fixed gdi return value madness
...
Mostly booleanization to comply with the MS API
2015-06-26 14:32:38 +02:00
Marc-André Moreau
ddf2519f1e
Merge pull request #2719 from bmiklautz/pull/2481
...
OSS, tsmf, usb and BSD fixes and improvements
2015-06-26 08:27:22 -04:00
Bernhard Miklautz
da021fe1a8
Merge pull request #2736 from akallabeth/windows_client_fix
...
Fixed windows client pre_connect return.
2015-06-26 14:20:37 +02:00
Norbert Federa
5281070045
Merge pull request #2734 from giox069/master
...
Fixes for software GDI issues #2732 and #2137
2015-06-26 13:15:56 +02:00
Armin Novak
8165031eb4
Fixed windows client pre_connect return.
2015-06-26 13:13:32 +02:00
Bernhard Miklautz
54c4dd6264
Merge pull request #2735 from akallabeth/clipboard_temp_file_name_conversion_fix
...
[Clipboard] Fixed out of bound array access.
2015-06-26 12:49:42 +02:00