FreeRDP/server/shadow
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
..
Mac shadow: improve Mac subsystem 2014-09-19 19:58:49 -04:00
Win change return types of callbacks to BOOL 2015-04-21 14:18:07 +02:00
X11 Merge pull request #2213 from akallabeth/wlog_callback_appender 2014-11-17 09:41:58 -05:00
.gitignore shadow: start simplifying X11 shadow server 2014-07-10 16:32:46 -04:00
CMakeLists.txt rdtk/shadow: install libraries versioned 2014-12-12 19:26:23 +01:00
shadow_capture.c shadow: fix null ClientDir 2014-10-29 16:11:22 -07:00
shadow_capture.h shadow: improve DXGI support 2014-08-12 16:57:58 -04:00
shadow_channels.c shadow: add basic server-side encomsp server 2014-07-15 16:34:15 -04:00
shadow_channels.h shadow: add basic server-side encomsp server 2014-07-15 16:34:15 -04:00
shadow_client.c codec/rfx: error checking and various fixes 2015-04-23 15:42:21 +02:00
shadow_client.h shadow: improve DXGI 1.2 error checking 2014-07-18 17:26:21 -04:00
shadow_encoder.c Fixed memory leak. 2014-11-17 00:34:17 +01:00
shadow_encoder.h libfreerdp-codec: improve compressor interfaces 2014-09-20 15:25:33 -04:00
shadow_encomsp.c Using wlog for server now. 2014-09-15 08:55:00 +02:00
shadow_encomsp.h shadow: add basic server-side encomsp server 2014-07-15 16:34:15 -04:00
shadow_input.c Fix formating 2015-04-21 14:20:24 +02:00
shadow_input.h shadow: remove header include dependency on subsystem 2014-07-13 21:20:36 -04:00
shadow_lobby.c librdtk: improve text positioning 2014-10-01 12:18:17 -04:00
shadow_lobby.h rdtk: initial commit 2014-09-29 16:08:08 -04:00
shadow_remdesk.c channels/remdesk: initial dummy server-side remote assistance message parsing 2014-07-15 18:38:32 -04:00
shadow_remdesk.h shadow: add basic server-side encomsp server 2014-07-15 16:34:15 -04:00
shadow_screen.c shadow: add ability to select monitor to share 2014-09-10 14:58:14 -04:00
shadow_screen.h shadow: initial X11 multi-monitor support 2014-07-14 13:33:20 -04:00
shadow_server.c Changed listener callback arguments and return. 2015-04-21 15:57:25 +02:00
shadow_subsystem.c Fixed uninitialized value. 2014-12-07 00:23:46 +01:00
shadow_subsystem.h shadow: add improved pointer updates 2014-11-06 17:25:41 -05:00
shadow_surface.c Fixed memory leak. 2014-11-17 00:42:05 +01:00
shadow_surface.h shadow: initial X11 multi-monitor support 2014-07-14 13:33:20 -04:00
shadow.c libfreerdp-core: remove dependency on OPENSSL_Applink on Windows 2014-09-19 17:11:56 -04:00
shadow.h rdtk: initial commit 2014-09-29 16:08:08 -04:00