Merge pull request #1865 from awakecoding/master

Compression Cleanup
winpr: fixed incorrect pipe reference count usage

- refcount is only relevant for servermode
- refcount was used uninitialized in clientmode
- credit for fix goes to @bmiklautz

Bug was introduced by 5e09e37d42bd8896a687df830a95f5cb56e4d47c
Merge pull request #1866 from nfedera/fix-2014-05-26-01

winpr: fixed incorrect pipe reference count usage
Fixes for CVE-2014-0250

This patch introduce misc checks when receiving pointer updates. We check
that the cursor are in the bounds defined by the spec. We also check that
the announced mask sizes are what they should be.
Set checks to be strict and also check xorBpp field

This patch:
* renames bpp to xorBpp ;
* changes checks to strict ;
* adds checks on the xorBpp field
Check for bpp > 0

Bpp == 0 just makes no sense
Check that bpp has reasonable value

As bpp is often used for malloc computations, let's check that it has
a reasonable value.
Merge branch 'master' of github.com:FreeRDP/FreeRDP
libwinpr-timezone: fix build on Windows
Merge pull request #1874 from hardening/CVE-2014-0250

Fixes for CVE-2014-0250
tcp: add timeout to prevent buggy client from hanging.
rdpsnd/server: fix incorrect use of channe handle.
transport: add a null pointer check.
libfreerdp-core: add gateway-usage-method command line option, avoid resetting BIO flags we shouldn't reset
libfreerdp-common: add freerdp_update_gateway_usage_method helper
transport: add another null pointer check.
libfreerdp-core: add connection timeout, fix gateway bypass local
libfreerdp-core: fix VerifyX509Certificate to make distinction between gateway and direct connection
libfreerdp-core: add locks to disable full duplex BIOs (currently unsafe)
Merge branch 'master' of github.com:FreeRDP/FreeRDP

Conflicts:
	libfreerdp/core/transport.c