Harden capability parsing

Don't check only the number of capabilities but also the remaining size in the stream
Merge pull request #1635 from hardening/capa_fixes

Harden capability parsing
More security fixes for capabilities

This patch fixes a security issue which would allow an attackant to set bytes to 1 at choosen places.
It also fixes a warning when DEBUG_CAPABILITIES is set.
libfreerdp-codec: add new planar codec test data
libfreerdp-codec: make planar encoder pass compression/decompression tests
libfreerdp-codec: reduce size of GDI bitmap encoder
More security fixes for capabilities

This patch fixes a security issue which would allow an attackant to set bytes
to 1 at choosen places.
It also fixes a warning when DEBUG_CAPABILITIES is set.
Handle EINTR nicely

When we caught an EINTR during a select we should retry instead of returning an error
Merge pull request #1640 from hardening/capafix2

More security fixes for capabilities
Fix CVE-2014-0791

This patch fixes CVE-2014-0791, the remaining length in the stream is checked
before doing some malloc().
Merge pull request #1656 from hardening/CVE-2014-0791-v2

Fix CVE-2014-0791
Merge branch 'master' of github.com:FreeRDP/FreeRDP
libfreerdp-core: implement parsing of less frequent core rdp messages
libfreerdp-codec: minor planar codec fix (undocumented behaviour for RLE)
libfreerdp-codec: got planar encoder to work 100% correctly
Improve performance for delta_encoder

This patch inline the case of the first line to drop the if() that was done
at each loop.
Some variable have been renamed for code clarity.
Merge pull request #23 from hardening/planar_perf

Improve performance for delta_encoder
add additional evdev key mappings for multimedia and Korean keyboards
Merge pull request #1662 from dpoe/master

Add additional evdev key mappings for multimedia and Korean keyboards
Added auto reconnect to FreeRDP core and X11 client