FreeRDP/client
Norbert Federa 84577b1ca7 codec/rfx: error checking and various fixes
- removed some unneeded null checks for free()
- fixed a memory leak in shadow_client
- removed rfx_compose_message_header from API

Changed the following functions to BOOL, check the result
where they are called and handle failures:
- rfx_compose_message
- rfx_compose_message_header
- rfx_write_tile
- rfx_write_message_tileset
- rfx_write_message_frame_begin
- rfx_write_message_region
- rfx_write_message_frame_end
- rfx_write_message

rfx_process_message:
- check memory allocation failures
- verify protocol-conform order of data messages to prevents memory
  leaks caused by repeated allocations
- verify that header messages were parsed/received before the
  data messages
- treat unknown rlgr mode as error
- fixed/added error handling
- fixed all callers to check/handle result

rfx_encode_message:
- fixed incorrect usage of realloc
- missing malloc check
- missing check of CreateThreadpoolWork
- correct cleanup on failure (threadpool, memory)
- check rfx_encode_message result

rfx_encode_messages:
- check rfx_split_message result
- correct cleanup on failure
- prevent memory leak on failure

rfx_write_message_context:
- fixed invalid channelId value (must be 0xFF for WBT_CONTEXT)

rfx_process_message_codec_versions:
- fixed invalid read size of codec_version (it is 16bit)

rfx_process_message_channels:
- verify protocol conform channelId value

rfx_process_message_region:
- replaced invalid reallocs with malloc
- read and verify regionType and numTileSets from stream

rfx_process_message_tileset:
- check allocation results
- fixed incorrect usages of realloc

setupWorkers:
- fixed incorrect usages of realloc

rfx_split_message:
- removed dead code
- missing malloc check

rfx_compose_message:
- fixed a memory leak
- check/handle rfx_encode_message result
2015-04-23 15:42:21 +02:00
..
Android change return types of callbacks to BOOL 2015-04-21 14:18:07 +02:00
common Necessary changes to get latest branch working on OpenBSD 5.6 2015-04-21 14:42:06 -04:00
DirectFB Added flag to ignore unknown keywords 2015-03-16 10:15:37 +01:00
iOS change return types of callbacks to BOOL 2015-04-21 14:18:07 +02:00
Mac change return types of callbacks to BOOL 2015-04-21 14:18:07 +02:00
Sample Merge pull request #2544 from bmiklautz/boolenization 2015-04-22 11:01:27 +02:00
Wayland Updated to new freerdp_get_event_handles API. 2015-04-22 11:17:47 +02:00
Windows codec/rfx: error checking and various fixes 2015-04-23 15:42:21 +02:00
X11 codec/rfx: error checking and various fixes 2015-04-23 15:42:21 +02:00
.gitignore freerdp: remove vendor-specific options from build system, add automatic ways of including external clients/servers 2013-09-03 20:37:04 -04:00
CMakeLists.txt build: cmake 3.1 compatibility 2014-12-12 19:26:22 +01:00