- Fixes#1166
- Fixed a possible segfault caused by invalid command line parameters
- Removed serial->in_event which had no effect at all on the program logic
# By Bernhard Miklautz (14) and others
# Via Marc-André Moreau (10) and others
* 'master' of git://github.com/awakecoding/FreeRDP: (40 commits)
xfreerdp: improve selection between multitouch and non-multitouch devices with XInput 2
cache and core: set pointer to NULL after free
pointer cache: fixed double free
freerdp-client: use 32bpp with NSCodec
libwinpr-utils: fix deadlock in PubSub
utils/profiler: fix unix build
utils: fix broken stopwatch implementation
Android: various bug fixes to prevent NullPointerExceptions
client/x11: fixed incorrect size calculation
libfreerdp-utils/pcap: open pcap in binary mode
libwinpr-synch: fix broken USleep (on WIN32)
sample server: support build on win32
server/sample: fix for issue #1312 (mstsc protocol error)
fixed incorrect size calculation
libfreerdp-common: add some null pointer checks.
libfreerdp-codec/rfx: fix a memory leak.
winpr/alignment: use size_t instead of UINT32
Assorted tsmf and gstreamer fixes:
winpr: offset support in _aligned_offset_malloc
xfreerdp-server: removed binary
...
If sec pointer isn't invalidated after creation it is not possible
to check if the upper and lower pointers are valid.
This fixes a segfault in the server part if the client disconnects before
the authentication was finished.
# By Marc-André Moreau
# Via Marc-André Moreau
* 'master' of git://github.com/awakecoding/FreeRDP:
freerdp: add new events for scaling and panning changes
xfreerdp: add ParamChange event handler
freerdp: add more settings for window panning and scaling
winpr: add _WINRT platform detection macro
Stopwatch (in the way it is used) must be able to measure the wall
clock time with high resolution but used clock() which is not
appropriate for this purpose:
On POSIX systems clock() returns the processor time used by the
program. On Windows clock() does measure the wall clock time but
has only a resolution of 1ms (if at all).
This also renders the freerdp profiler unusable.
This commit changes stopwatch to use the performance counters
on Windows and gettimeofday() for the rest.
Also added a warning about invalid profiling results to the
RemoteFX codec if rfxcontext->priv->UseThreads is enabled because
stopwatch is currently not used in a thread safe way.
Also see GitHub Issue #1325